note 34761 rejected from function.array-multisort by didou
| From: | didou@php.net | Date: | Wed, 06 Aug 2003 06:21:29 +0000 |
| Subject: | note 34761 rejected from function.array-multisort by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53493@lists.php.net to get a copy of this message | ||
Note Submitter: theseum (at) rampantlabs (dot) net
----
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.