我有一个这样的数组
$arrList = Array (
[0] => Array
(
[master] => Array
(
[id] => 3
[name] => Test
)
)
[1] => Array
(
[master] => Array
(
[id] => 4
[name] => Sample
)
)
)
现在,我知道 的值,我id
怎样才能重新排列特定的值,id
使其位于顶部..(即,无论id
我在应该位于数组顶部的变量中的值是什么,如果我得到的值为id
4 那么数组应该是
$arrList = Array (
[0] => Array
(
[master] => Array
(
[id] => 4
[name] => Sample
)
)
[1] => Array
(
[master] => Array
(
[id] => 3
[name] => Test
)
)
)
提前致谢..