note 51415 added to function.usort
| From: | guenther dot stadler at gmx dot net | Date: | Wed, 30 Mar 2005 10:25:03 +0000 |
| Subject: | note 51415 added to function.usort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87177@lists.php.net to get a copy of this message | ||
Just something i stumbled about right now:
If the array consists of just one elemtent, the user-function is not called at all.
Although this surely makes sense, think of it if you want to use your order-function for adding
extra data to your arrays...
----
Manual Page -- http://www.php.net/manual/en/function.usort.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51415
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51415&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51415&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51415&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51415&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51415&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51415&report=yes
Search -- http://master.php.net/manage/user-notes.php