reorder array
| From: | Diana Castillo | Date: | Tue, 02 Mar 2004 12:06:55 +0000 |
| Subject: | reorder array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-179232@lists.php.net to get a copy of this message | ||
If I have an array as follows, and I want to re-order it so that it is in
order of seqnum , How could I do it?
Array
(
[0] => Array
(
[price] => 187.08
[seqnum] => 2
[roomdesc] => Standard
)
[1] => Array
(
[price] => 187.08
[seqnum] => 1
[roomdesc] => Standard
)
[2] => Array
(
[price] => 187.08
[seqnum] => 1
[roomdesc] => Standard
)
)
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 ext 214
Fax : 00-34-915228673
email: diana@hotelkey.com
Web : http://www.hotelkey.com
http://www.destinia.com