Posted: Sat Oct 21, 2006 10:06 am
That's probably because English isn't their native language.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Never? What about when you want count() executed every loop becaue you are changing the length of the array within the loop?AKA Panama Jack wrote:You should NEVER use the COUNT function in a FOR loop
Code: Select all
for ($i=0; $i < count($array); $i++) {}
All of PHP is written in C. What's the point you're making?Hades wrote:foreach will likely be faster due to the fact that it essentially does the same as you are doing in the for loop, but it is written in C and that makes it faster to execute