Есть ли способ отсортировать многомерный массив из файла xml? Используя php - PullRequest
0 голосов
/ 12 июля 2020

stdClass Object ([type] => FeatureCollection [metadata] => stdClass Object ([created] => 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 [status] => 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
            )
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...