次の構造の配列があります。
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 関数を使用してこれを行うにはどうすればよいですか? それとも他の方法でできますか?ありがとう。