Hello,
The below orders $hotel_array['hotel'] by price, leaving the structure unchanged (i.e. not multidimensional).
Please let me know what structure you would like.
Looking forward to reading from you.
Best regards,
FL
=============================
$prices = array();
$boards = array();
$rooms = array();
$hotel_ids = array();
foreach ($hotel_array['hotel'] as $key => $row) {
$prices[] = $row['price'];
$boards[] = $row['board'];
$rooms[] = $row['roomid'];
$hotel_ids[] = $row['hotelid'];
}
array_multisort($prices, SORT_ASC,
$hotel_ids, SORT_ASC, $rooms, SORT_ASC, $boards, SORT_ASC,
$hotel_array['hotel']);