note 18248 deleted from function.usort by cmb
| From: | cmb@php.net | Date: | Sun, 22 Sep 2019 07:55:21 +0000 |
| Subject: | note 18248 deleted from function.usort by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212293@lists.php.net to get a copy of this message | ||
Note Submitter: graham at irwin dot org
----
Example 3 above does not work with 4.0.4pl1, unless you write the uasort line as follows:
uasort($a, array ($a[0], "cmp_obj"));
(I assume any instance of the object: a[0] or a[1] or a[2] would work as well)
It does not work at all with associative arrays of objects.