note 32481 added to function.sort

From: Date: Wed, 28 May 2003 20:09:10 +0000
Subject: note 32481 added to function.sort
Groups: php.notes 
Request: Send a blank email to php-notes+get-49206@lists.php.net to get a copy of this message
All 'sort' family functions doesn't returns an ordered array, actually they change the original array, returnig true or false (or void or whatever). Might be obvious for some of you but cost me almost one hour... So, pay atention to example, they do not use $new = sort($old); but just sort($old); (an odd behavior for php functions in my opinion) ---- Manual Page -- http://www.php.net/manual/en/function.sort.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32481 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32481&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32481&report=yes

« previous php.notes (#49206) next »