[TYPO3-core] RFC #0011512: replace while(list()...) by foreach in the TYPO3 core part 1
Benjamin Mack
benni at typo3.org
Thu Jul 16 10:20:53 CEST 2009
Hey Rupi,
http://www.phpbench.com/
see Read Loop:foreach() vs. for() vs. while(list() = each())
Citing:
"In all cases I've found that the foreach loop is substantially faster
than both the while() and for() loop procedures. One thing to note is
that when using an entire loop from the start it's extremely good to use
the reset() function in all examples"
All the best,
Benni.
More information about the TYPO3-team-core
mailing list