note 7930 added to sort
| From: | x-itec at freenet dot de | Date: | Sun, 20 Aug 2000 23:59:23 +0000 |
| Subject: | note 7930 added to sort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2803@lists.php.net to get a copy of this message | ||
Maybe u have a problem that you can not sort your array if the array contains only numbers. The
solution: The numbers are sorted as ASCII, you have to store values to your array in this form as an
example:
$artikelarray[$x]=intval($row188[id]);
You have to use INTVAL to convert your Number to a numeric value! Now you can sort your array with
sort($artikelarray) and it works finde.
Boris Köster
http://www.php.net/manual/function.sort.php