Hi,
Set the maxvalue for your for-loops before and not in the loop.
Code:
$maxvalue = 100/10;
for($i=0; $i<$maxvalue; $i++){
// Some code
} is faster than:
Code:
for($i=0; $i<100/10; $i++){
// Some code
} because the value is calculated once instead of ten times.
Regards,
R.Kamalakannan.