note 118260 added to arrayiterator.uasort
| From: | MassimilianoArione | Date: | Thu, 05 Nov 2015 15:35:57 +0000 |
| Subject: | note 118260 added to arrayiterator.uasort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204086@lists.php.net to get a copy of this message | ||
Even if documentation says that $cmp_function must be a string, this method works with a Callable
also.
Example:
<?php
$iterator->uasort([$this, 'usort']); // 'usort' here is a method in the same
class
----
Server IP: 94.198.100.12
Probable Submitter: 93.47.208.252
----
Manual Page -- http://php.net/manual/en/arrayiterator.uasort.php
Edit -- https://master.php.net/note/edit/118260
Del: integrated -- https://master.php.net/note/delete/118260/integrated
Del: useless -- https://master.php.net/note/delete/118260/useless
Del: bad code -- https://master.php.net/note/delete/118260/bad+code
Del: spam -- https://master.php.net/note/delete/118260/spam
Del: non-english -- https://master.php.net/note/delete/118260/non-english
Del: in docs -- https://master.php.net/note/delete/118260/in+docs
Del: other reasons-- https://master.php.net/note/delete/118260
Reject -- https://master.php.net/note/reject/118260
Search -- https://master.php.net/manage/user-notes.php