The intention of the code below is to print out the division (for a page break) every 100 lines.
I can't seem to find a way to do it as is_integer still considers $lines as floating point.
Can anyone offer a suggestion.
Clive
I can't seem to find a way to do it as is_integer still considers $lines as floating point.
Can anyone offer a suggestion.
Code:
for ($i=0; $i<$count; $i=$i+10) {
//SOME OK CODE
$lines=(float)$i/100.00;
if (!is_integer($lines)) {
echo('<div class=\"page\">');
}
//SOME OK CODE
}
Clive