note 53630 added to function.array-combine
| From: | t0russ at gmail dot com | Date: | Tue, 07 Jun 2005 18:24:59 +0000 |
| Subject: | note 53630 added to function.array-combine | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90082@lists.php.net to get a copy of this message | ||
just a curious result:
built-in function array_combine()
is almost twice faster than using foreach() method
not a big difference when talking in milliseconds... but what if it's used in a 200000-users
database? that can make quite a difference...
just a thought :)
----
Manual Page -- http://www.php.net/manual/en/function.array-combine.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53630
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53630&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53630&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53630&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53630&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53630&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53630&report=yes
Search -- http://master.php.net/manage/user-notes.php