note 17988 added to aliases
| From: | dima at php dot spb dot ru | Date: | Sun, 06 Jan 2002 03:00:20 +0000 |
| Subject: | note 17988 added to aliases | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24453@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++) {...}
--
http://www.php.net/manual/en/aliases.php
http://master.php.net/manage/user-notes.php?action=edit+17988
http://master.php.net/manage/user-notes.php?action=delete+17988
http://master.php.net/manage/user-notes.php?action=reject+17988