Насколько существенна такая оптимизация?

Feb 12, 2009 15:38

reset($aZoneIds);
while (list($key, $zoneId) = each($aZoneIds)) {...}

UPD - фрагмент из кода серьёзного ad-cервера. А люди, успешно занимающиеся рекламой, деньги считать умеют

UPD2 Разница между each и foreach таки нашлась:
Unless the array is referenced, foreach operates on a copy of the specified array and not the array itself.
Previous post Next post
Up