note 45742 rejected from function.array-multisort by nlopess
| From: | nlopess@php.net | Date: | Fri, 17 Sep 2004 09:34:08 +0000 |
| Subject: | note 45742 rejected from function.array-multisort by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76864@lists.php.net to get a copy of this message | ||
Note Submitter: dawa at did-it dot com
----
There is a bug (I think ) in array_multisort ...EG
<code>
$a1 = Array("1", "2", "5", "4", "2");
$b = Array("c", "d", "e", "f", "a");
$a2 = $a1;
array_multisort($a1);
print_r($a1);
print_r($a2); //Prints 1 2 2 4 5 [This is wrong]
</code>
Do you guys have any insight?