Re: Site Performance - Tips & Tricks we can increase the performance of the site by using following steps: 1)
for ($i=0;$i<count($some_array);++$i) {
}is slow
$temp=count($some_array);
for ($i=0;$i<$temp;++$i) {
}is faster
for ($i=0;isset($some_array[$i]);++$i) {
}is fastest 2)
Use ++$i instead of $i++. The second one uses a temporary copy of $i to add 1 to, then assign to $i.
__________________
J.Vijayanand |