note 22108 added to function.sort
| From: | php-general at lists dot php dot net | Date: | Thu, 06 Jun 2002 19:59:02 +0000 |
| Subject: | note 22108 added to function.sort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31545@lists.php.net to get a copy of this message | ||
Regarding sort not touching single element arrays, use the following code to cope:
if( count($ids) == 1 )
{
$ids = array( array_pop($ids) );
}
--
http://www.php.net/manual/en/function.sort.php
http://master.php.net/manage/user-notes.php?action=edit+22108
http://master.php.net/manage/user-notes.php?action=delete+22108
http://master.php.net/manage/user-notes.php?action=reject+22108