0
這是我的數組。根據多維數組中的鍵對數組進行排序並保留其他鍵值。 PHP
Array ( [Data] => Array ( [0] => Array ( [recipeid] => 108 [recipe] => Rasams- the tongue ticklers ! [image] => No data [category] => Rasams and Soups ) [1] => Array ( [recipeid] => 44 [recipe] => Brain Booster- do you want to try it? [image] => brain-booster-do-you-44-HP-62.jpg [category] => Drinks and Smoothies ) [2] => Array ( [recipeid] => 36 [recipe] => Pineapple Grape Smoothy--a rare combo [image] => pineapple-grape-smoo-36-HP-62.jpg [category] => Drinks and Smoothies ) ) )
我有排序根據[鍵]配方的值的字母順序[DATA]陣列,還保存排序後的recipeid,圖像,類別。