note 17988 rejected from aliases by zak
| From: | zak@php.net | Date: | Sun, 06 Jan 2002 04:05:15 +0000 |
| Subject: | note 17988 rejected from aliases by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24456@lists.php.net to get a copy of this message | ||
count() is alias sizeof()... But sizeof() faster on big arrays (64K+ num)!
http://php.spb.ru/php/speed.html#count&sizeof
Test
for ($it=0; $it<count($bigarray); $it++) {...}
and
for ($it=0; $it<sizeof($bigarray); $it++) {...}