note 37711 added to function.uasort

From: Date: Sun, 23 Nov 2003 21:34:28 +0000
Subject: note 37711 added to function.uasort
Groups: php.notes 
Request: Send a blank email to php-notes+get-60894@lists.php.net to get a copy of this message
regarding remmy.cjb.net (22-Oct-2003 05:57) note: The "multisort" function is not working. Try the following example. ( I hope this and your note will be deleted soon.) ..- Denis <?php $a = array( array('c1' => 1, 'c2' => 1, 'c3' => 1, 'c4' => 1), array('c1' => 1, 'c2' => 1, 'c3' => 1, 'c4' => 2), array('c1' => 1, 'c2' => 1, 'c3' => 2, 'c4' => 1), array('c1' => 1, 'c2' => 1, 'c3' => 2, 'c4' => 2) ); echo('<pre>'); print_r(multisort($a, "'c4'", true, 2,"'c3'", true, 2,"'c2'", true, 2,"'c1'", true, 2)); echo('</pre>'); ?> ---- Manual Page -- http://www.php.net/manual/en/function.uasort.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37711 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37711&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37711&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#60894) next »