note 45799 added to function.array-multisort

From: Date: Sun, 19 Sep 2004 17:43:54 +0000
Subject: note 45799 added to function.array-multisort
Groups: php.notes 
Request: Send a blank email to php-notes+get-76981@lists.php.net to get a copy of this message
sdavey's note was a big help to me, partly because this complex function is seriously under-documented. It makes no mention of the use of that trailing "array" parameter, though Mr. Davey intuited it nicely. Based on my own code, I suspect Mr. Davey's code can be simplified slightly: array_multisort($volume, SORT_DESC, $edition, SORT_ASC, $arr); may work as: array_multisort($volume, SORT_DESC, $arr); No guarantees, but my similar needs and code worked fine with that simplification. All you contributors to the php.net forum rock! Thanks... ---- Manual Page -- http://www.php.net/manual/en/function.array-multisort.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45799 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45799&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45799&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76981) next »