note 11553 rejected and deleted from sort by ronabop
| From: | ronabop@php.net | Date: | Sun, 25 Feb 2001 02:48:20 +0000 |
| Subject: | note 11553 rejected and deleted from sort by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11572@lists.php.net to get a copy of this message | ||
What about sorting numbers? Why it doesn't works?
$fruits = array ("3", "12", "11", "1");
sort ($fruits);
reset ($fruits);
while (list ($key, $val) = each ($fruits)) {
echo "fruits[".$key."] = ".$val;
}