我有一个需要按“是”和“否”键排序的数组 - 如何在 PHP 中完成?具体来说,我希望所有是的都成为第一个索引(永远只有 1 个是,很多不是)
Array (
[0] => Array
(
[no] => Array
(
[0] => 379
)
[yes] => Array
(
[1] => 370
)
)
[1] => Array
(
[yes] => Array
(
[0] => 372
)
)
[2] => Array
(
[no] => Array
(
[0] => 377
)
[yes] => Array
(
[1] => 374
)
)
)