我有两个数组。第一个是我的对象:
Array
(
[0] => stdClass Object
(
[id_keyword] => 148
[id_group] => 34
)
[1] => stdClass Object
(
[id_keyword] => 200
[id_group] => 34
)
[2] => stdClass Object
(
[id_keyword] => 151
[id_group] => 34
)
[3] => stdClass Object
(
[id_keyword] => 207
[id_group] => 34
)
)
还有一个,我需要基于 id_keyword 的位置:
Array
(
[0] => 200
[1] => 148
[2] => 151
[3] => 207
)
我想对我的第一个数组进行排序。我查看了array_multisort,但没有成功:/
任何想法 ?
谢谢 !