PHP Mythbusters: Count inside for loop is slow
Is it faster to calculate the length of the loop in advance?
Is it faster to calculate the length of the loop in advance?
This is the first in a series of articles (I hope) that will try to deal with some known PHP Myths around.