note 72621 added to function.usort
| From: | xentor dot nl at gmail dot com | Date: | Fri, 26 Jan 2007 12:54:27 +0000 |
| Subject: | note 72621 added to function.usort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-122225@lists.php.net to get a copy of this message | ||
Responding to the 3rd example in the documentation above, which shows:
usort($a, array("TestObj", "cmp_obj"));
I've just succesfully tested this variation (php version 4.3.6):
usort($a, 'TestObj::cmp_obj');
That makes a lot more sense to me.
----
Server IP: 83.137.20.120
Probable Submitter: 195.86.6.226
----
Manual Page -- http://www.php.net/manual/en/function.usort.php
Edit -- https://master.php.net/note/edit/72621
Del: integrated -- https://master.php.net/note/delete/72621/integrated
Del: useless -- https://master.php.net/note/delete/72621/useless
Del: bad code -- https://master.php.net/note/delete/72621/bad+code
Del: spam -- https://master.php.net/note/delete/72621/spam
Del: non-english -- https://master.php.net/note/delete/72621/non-english
Del: in docs -- https://master.php.net/note/delete/72621/in+docs
Del: other reasons-- https://master.php.net/note/delete/72621
Reject -- https://master.php.net/note/reject/72621
Search -- https://master.php.net/manage/user-notes.php