This may be a stupid question, but how does the efficiency of a while loop compare to that of a for loop? I've always been taught that if you can use a for loop, then I should. But what actually is the difference between :
$i = 0;
while($i < 100) {
echo $i;
$i++;
}
compare to:
for($i = 0; $i < 100; $i++) {
echo $i;
}
I know in these specific examples the difference is like .000000001%, but when we are talking about large complex loops, what is the difference?