我有一个xml源,每次都会给我带来一些数据。我用php' s simpleXML
解析xml,生成的数组如下所示。我的问题是我需要根据携带时间的值对数组进行升序排序。
Array
(
[0] => SimpleXMLElement Object
(
[dict] => Array
(
[0] => SimpleXMLElement Object
(
[key] => Array
(
[0] => channel
[1] => title
[2] => time
)
[string] => Array
(
[0] => OTE SPORT 3
[1] => ΕΡΓΟΤΕΛΗΣ - ΤΡΙΚΑΛΑ
[2] => 20:00
[3] => Ποδόσφαιρο
)
)
[1] => SimpleXMLElement Object
(
[key] => Array
(
[0] => channel
[1] => title
[2] => time
)
[string] => Array
(
[0] => NOVASPORTS 1
[1] => ΠΛΑΤΑΝΙΑΣ - ΟΛΥΜΠΙΑΚΟΣ
[2] => 19:30
)
)
)
)
[1] => SimpleXMLElement Object
(
[dict] => Array
(
[0] => SimpleXMLElement Object
(
[key] => Array
(
[0] => channel
[1] => title
[2] => time
)
[string] => Array
(
[0] => NOVASPORTS 2
[1] => ΚΟΛΟΣΣΟΣ - ΟΛΥΜΠΙΑΚΟΣ
[2] => 16:00
[3] => Μπάσκετ
)
)
)
)
)