note 997 deleted from sort by ronabop
| From: | ronabop@php.net | Date: | Mon, 21 Aug 2000 01:47:21 +0000 |
| Subject: | note 997 deleted from sort by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2811@lists.php.net to get a copy of this message | ||
The example code is not gonna do what you'd expect it to do. Yet, there's an easy
work-around:
$fruits = array("lemon","orange","banana","apple");
sort($fruits);
while (list($key,$val) = each($fruits) ) {
echo "fruits[$key] => $val<br>";
}