Thread
:
Loop syntax in Php.
View Single Post
06-20-2008, 08:50 PM
#
4
justin00
Status:
I'm new around here
Join date:
Jun 2008
Location:
localhost
Expertise:
Software:
Posts:
5
iTrader:
0
/ 0%
Another simple demo, this loop will run 10 times
$i = 0;
while($i < 10){
echo($i);
++$i;
}
You may notice I used ++$i, instead of $i++
Based on benchmarks ++$i is slightly faster
justin00
View Public Profile
Visit justin00's homepage!
Find More Posts by justin00