note 12515 rejected and deleted from function.array-multisort.php by zak

From: Date: Wed, 11 Jul 2001 13:16:37 +0000
Subject: note 12515 rejected and deleted from function.array-multisort.php by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-15233@lists.php.net to get a copy of this message
I cut-&-pasted the code from above and added some print_r() calls. The function array_multisort() doesn't work as adverstised. :] It generates an error: Warning: Argument 3 to array_multisort() is expected to be an array in array_multisort.php on line 9 Here is the PHP file array_multisort.php: <pre> <?php $ar = array (array ("10", 100, 100, "a"), array (1, 3, "2", 1)); print_r($ar); array_multisort ($ar[0], SORT_ASC, SORT_STRING, $ar[1], SORT_NUMERIC, SORT_DESC); print_r($ar); ?> </pre> Can anyone assist?

« previous php.notes (#15233) next »