RE: [PHP] Sort an array by it's values
| From: | Jeff McKeon | Date: | Mon, 26 Apr 2004 14:08:54 +0000 |
| Subject: | RE: [PHP] Sort an array by it's values | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-184645@lists.php.net to get a copy of this message | ||
Isn't that BY THE KEY, which is not what I need. I need to sort by the
ELEMENT.
Jeff
> -----Original Message-----
> From: Dave Avent [mailto:mail@daveavent.co.uk]
> Sent: Monday, April 26, 2004 10:06 AM
> To: php-general@lists.php.net
> Subject: RE: [PHP] Sort an array by it's values
>
>
> Yes, ksort
>
> try:
>
> http://uk.php.net/manual/en/function.ksort.php
>
> and remeber...The PHP Manual is your friend
>
>
>
> -----Original Message-----
> From: Jeff McKeon [mailto:jmckeon@telaurus.com]
> Sent: 26 April 2004 3:03 PM
> To: php-general@lists.php.net
> Subject: [PHP] Sort an array by it's values
>
>
> Is there a command similar to asort() that will sort the
> elements of an array not by their key values but by the
> element values?
>
> Thanks,
>
> Jeff
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>