note 18248 added to function.usort

From: Date: Wed, 16 Jan 2002 01:28:02 +0000
Subject: note 18248 added to function.usort
Groups: php.notes 
Request: Send a blank email to php-notes+get-24863@lists.php.net to get a copy of this message
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. -- http://www.php.net/manual/en/function.usort.php http://master.php.net/manage/user-notes.php?action=edit+18248 http://master.php.net/manage/user-notes.php?action=delete+18248 http://master.php.net/manage/user-notes.php?action=reject+18248

« previous php.notes (#24863) next »