我有一个具有以下结构的数组:
Array
(
[ResultMass] => Array
(
[0] => SimpleXMLElement Object
(
//elements and other arrays
[FlightsTo] => SimpleXMLElement Object
(
[Flight] => SimpleXMLElement Object
(
[Company] => 4G
//other elements
)
)
[FlightsBack] => SimpleXMLElement Object
(
[Flight] => SimpleXMLElement Object
(
[Company] => 4G
//other elements
)
)
)
//other elements of 'resultmass'
)
)
[Error] => 0
)
我需要在此元素的“FlightsTo->Flight->Company”字符串上对 ResultMass 元素进行排序。我如何使用 array_multisort 函数来做到这一点?还是可以通过其他方法完成?谢谢。