Re: PHP ---- sort()
| From: | Andreas Landmark | Date: | Mon, 23 Apr 2001 15:20:48 +0000 |
| Subject: | Re: PHP ---- sort() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49865@lists.php.net to get a copy of this message | ||
On Mon, Apr 23, 2001 at 08:57:21AM -0400, Scott Fletcher produced this golden nugget:
> I have used the PHP sort function --> sort(). When I use sort($data,
> NUMERIC), it sort the data by Numeric order. But it goes in ascending
> order. Is there a way to make it go in Descending order?
Use rsort()
(and if you looked at the manual, you would've found this yourself
instead of posting to the list ;-)
--
Andreas D. Landmark / noXtension
There is no time like the present for postponing what you ought to be
doing.