note 34761 added to function.array-multisort
| From: | theseum at rack1 dot php dot net | Date: | Wed, 06 Aug 2003 00:05:11 +0000 |
| Subject: | note 34761 added to function.array-multisort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-53468@lists.php.net to get a copy of this message | ||
note also that you can't work around the numeric key resetting bug with casts, eg:
$i = 4;
$j = 5;
$array["$i"] = "spoon";
$array[(string)$j] = "fork";
array_multisort($array);
array is now (0=>"fork", 1=>"spoon")
I hope they fix this in version 5.
----
Manual Page -- http://www.php.net/manual/en/function.array-multisort.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34761
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34761&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34761&report=yes