note 102836 added to function.usort
| From: | johnnybit at gmail dot com | Date: | Wed, 09 Mar 2011 13:09:10 +0000 |
| Subject: | note 102836 added to function.usort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-177684@lists.php.net to get a copy of this message | ||
cuonghuyto's second point is actually false.
If your function doesn't return anything it is treated as 0, which means that elements are
equal. If your function returns any number other than 0 it is treated as stated - less than zero
means first argument smaller, otherwise oposite.
----
Server IP: 69.147.83.197
Probable Submitter: 193.24.200.49
----
Manual Page -- http://www.php.net/manual/en/function.usort.php
Edit -- https://master.php.net/note/edit/102836
Del: integrated -- https://master.php.net/note/delete/102836/integrated
Del: useless -- https://master.php.net/note/delete/102836/useless
Del: bad code -- https://master.php.net/note/delete/102836/bad+code
Del: spam -- https://master.php.net/note/delete/102836/spam
Del: non-english -- https://master.php.net/note/delete/102836/non-english
Del: in docs -- https://master.php.net/note/delete/102836/in+docs
Del: other reasons-- https://master.php.net/note/delete/102836
Reject -- https://master.php.net/note/reject/102836
Search -- https://master.php.net/manage/user-notes.php