Re: reorder array
| From: | Richard Davey | Date: | Tue, 02 Mar 2004 12:16:38 +0000 |
| Subject: | Re: reorder array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179234@lists.php.net to get a copy of this message | ||
Hello Diana,
Tuesday, March 2, 2004, 12:06:55 PM, you wrote:
DC> If I have an array as follows, and I want to re-order it so that it is in
DC> order of seqnum , How could I do it?
DC> [0] => Array
DC> (
DC> [price] => 187.08
DC> [seqnum] => 2
DC> [roomdesc] => Standard
DC> )
See the array_multisort() function.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html