This is the result of a query in the form of associative array
[code]
Array
(
[Biriyani] => Array
(
[Long-grained rice flavored with exotic spices for example saffron and coriander mixed with vegetables, egg and/or optionally with any meat or seafood] => Array
(
[Priya Special Biriyani] => Array
(
[] => Array
(
[0] => Array
(
[dish_type] => Non-Vegetarian
[dish_price] => 7.99
)
)
)
[Vegetable Biriyani] => Array
(
[] => Array
(
[0] => Array
(
[dish_type] => Vegetarian
[dish_price] => 4.45
)
)
)
[Egg Biriyani] => Array
(
[] => Array
(
[0] => Array
(
[dish_type] => Non-Vegetarian
[dish_price] => 4.95
)
)
)
[Chicken Biriyani] => Array
(
[] => Array
(
[0] => Array
(
[dish_type] => Non-Vegetarian
[dish_price] => 5.95
)
)
)
[Mutton Biriyani] => Array
(
[] => Array
(
[0] => Array
(
[dish_type] => Non-Vegetarian
[dish_price] => 6.25
)
)
)
[Prawn Biriyani] => Array
(
[] => Array
(
[0] => Array
(
[dish_type] => Non-Vegetarian
[dish_price] => 6.50
)
)
)
[Seafood Biriyani] => Array
(
[] => Array
(
[0] => Array
(
[dish_type] => Non-Vegetarian
[dish_price] => 7.25
)
)
)
[Hyderabadi Chicken Biriyani] => Array
(
[] => Array
(
[0] => Array
(
[dish_type] => Non-Vegetarian
[dish_price] => 6.49
)
)
)
[Hyderabadi Mutton Biriyani] => Array
(
[] => Array
(
[0] => Array
(
[dish_type] => Non-Vegetarian
[dish_price] => 6.99
)
)
)
)
)
)
However from the database the Priya Special Biriyani is the last item but some reason shows up as the first.
How would I go about rearranging it. Its just the first should be last I’ve tried array_push() but it shows as the first and the last
Any Ideas, Solution much appreciated