note 11553 added to sort

From: Date: Sat, 24 Feb 2001 11:32:35 +0000
Subject: note 11553 added to sort
Groups: php.notes 
Request: Send a blank email to php-notes+get-11519@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; } http://www.php.net/manual/en/function.sort.php

« previous php.notes (#11519) next »