有什么办法可以从xml文件中排序一个变数数组?

时间:2020-07-12 17:29:44

标签: php arrays xml sorting multidimensional-array

stdClass对象 ( [类型] => FeatureCollection [元数据] => stdClass对象 ( [生成] => 1593668059000 [url] => https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&starttime=2020-01-15T00:00:00&endtime=2020-01-15T12:00:00 [title] => USGS地震 [状态] => 200 [api] => 1.10.1 [count] => 262 )

[features] => Array
    (
        [0] => stdClass Object
            (
                [type] => Feature
                [properties] => stdClass Object
                    (
                        [mag] => 1.1
                        [place] => 16km NNE of Angwin, CA
                        [time] => 1579089438160
                        [updated] => 1579831863096
                        [tz] => -480
                        [url] => https://earthquake.usgs.gov/earthquakes/eventpage/nc73327781
                        [detail] => https://earthquake.usgs.gov/fdsnws/event/1/query?eventid=nc73327781&format=geojson
                        [felt] => 
                        [cdi] => 
                        [mmi] => 
                        [alert] => 
                        [status] => reviewed
                        [tsunami] => 0
                        [sig] => 19
                        [net] => nc
                        [code] => 73327781
                        [ids] => ,nc73327781,
                        [sources] => ,nc,
                        [types] => ,geoserve,nearby-cities,origin,phase-data,scitech-link,
                        [nst] => 23
                        [dmin] => 0.0876
                        [rms] => 0.09
                        [gap] => 147
                        [magType] => md
                        [type] => earthquake
                        [title] => M 1.1 - 16km NNE of Angwin, CA
                    )

                [geometry] => stdClass Object
                    (
                        [type] => Point
                        [coordinates] => Array
                            (
                                [0] => -122.4113333
                                [1] => 38.7173333
                                [2] => 8.02
                            )

                    )

                [id] => nc73327781
            )

0 个答案:

没有答案