array i object?
Jeg er igen ude på det dybe.Jeg har i nedenståede nogle arrays. ik?
Jeg skal egentlig bare bruge data (number,streetname, etc) fra det første array.
Hvad skal jeg gøre i PHP for at få fingrene i de data? en eller anden løkke, men hvordan?
Array
(
[0] => stdClass Object
(
[Number] => 96502
[CompanyName] => Redoffice Kontorsupermarked
[Streetname] => Sønderbrogade 27
[Streetname2] => Pakkeshop: 96502
[ZipCode] => 8700
[CityName] => Horsens
[CountryCode] => 008
[CountryCodeISO3166A2] => DK
[Telephone] => -
[Longitude] => 9.84203
[Latitude] => 55.8588
[DistanceMetersAsTheCrowFlies] => 994
[OpeningHours] => stdClass Object
(
[Weekday] => Array
(
[0] => stdClass Object
(
[day] => Monday
[openAt] => stdClass Object
(
[From] => 08:30
[To] => 17:30
)
[breaks] => stdClass Object
(
)
)
[1] => stdClass Object
(
[day] => Tuesday
[openAt] => stdClass Object
(
[From] => 08:30
[To] => 17:30
)
[breaks] => stdClass Object
(
)
)
[2] => stdClass Object
(
[day] => Wednesday
[openAt] => stdClass Object
(
[From] => 08:30
[To] => 17:30
)
[breaks] => stdClass Object
(
)
)
[3] => stdClass Object
(
[day] => Thursday
[openAt] => stdClass Object
(
[From] => 08:30
[To] => 17:30
)
[breaks] => stdClass Object
(
)
)
[4] => stdClass Object
(
[day] => Friday
[openAt] => stdClass Object
(
[From] => 08:30
[To] => 17:30
)
[breaks] => stdClass Object
(
)
)
[5] => stdClass Object
(
[day] => Saturday
[openAt] => stdClass Object
(
[From] => 09:00
[To] => 13:00
)
[breaks] => stdClass Object
(
)
)
)
)
)
[1] => stdClass Object
(
[Number] => 97012
[CompanyName] => Bilka ( Information)
[Streetname] => Høegh Guldbergs Gade 10
[Streetname2] => Pakkeshop: 97012
[ZipCode] => 8700
[CityName] => Horsens
[CountryCode] => 008
[CountryCodeISO3166A2] => DK
[Telephone] => -
[Longitude] => 9.8542
[Latitude] => 55.8591
[DistanceMetersAsTheCrowFlies] => 1371
[OpeningHours] => stdClass Object
(
[Weekday] => Array
(
[0] => stdClass Object
(
[day] => Monday
[openAt] => stdClass Object
(
[From] => 06:00
[To] => 24:00
)
[breaks] => stdClass Object
(
)
)
[1] => stdClass Object
(
[day] => Tuesday
[openAt] => stdClass Object
(
[From] => 06:00
[To] => 24:00
)
[breaks] => stdClass Object
(
)
)
[2] => stdClass Object
(
[day] => Wednesday
[openAt] => stdClass Object
(
[From] => 06:00
[To] => 24:00
)
[breaks] => stdClass Object
(
)
)
[3] => stdClass Object
(
[day] => Thursday
[openAt] => stdClass Object
(
[From] => 06:00
[To] => 24:00
)
[breaks] => stdClass Object
(
)
)
[4] => stdClass Object
(
[day] => Friday
[openAt] => stdClass Object
(
[From] => 06:00
[To] => 24:00
)
[breaks] => stdClass Object
(
)
)
[5] => stdClass Object
(
[day] => Saturday
[openAt] => stdClass Object
(
[From] => 06:00
[To] => 24:00
)
[breaks] => stdClass Object
(
)
)
[6] => stdClass Object
(
[day] => Sunday
[openAt] => stdClass Object
(
[From] => 06:00
[To] => 24:00
)
[breaks] => stdClass Object
(
)
)
)
)
)
[2] => stdClass Object
(
[Number] => 95484
[CompanyName] => OK Plus Torsted
[Streetname] => Vejlevej 82
[Streetname2] => Pakkeshop: 95484
[ZipCode] => 8700
[CityName] => Horsens
[CountryCode] => 008
[CountryCodeISO3166A2] => DK
[Telephone] => -
[Longitude] => 9.8205
[Latitude] => 55.8435
[DistanceMetersAsTheCrowFlies] => 1391
[OpeningHours] => stdClass Object
(
[Weekday] => Array
(
[0] => stdClass Object
(
[day] => Monday
[openAt] => stdClass Object
(
[From] => 05:30
[To] => 22:00
)
[breaks] => stdClass Object
(
)
)
[1] => stdClass Object
(
[day] => Tuesday
[openAt] => stdClass Object
(
[From] => 05:30
[To] => 22:00
)
[breaks] => stdClass Object
(
)
)
[2] => stdClass Object
(
[day] => Wednesday
[openAt] => stdClass Object
(
[From] => 05:30
[To] => 22:00
)
[breaks] => stdClass Object
(
)
)
[3] => stdClass Object
(
[day] => Thursday
[openAt] => stdClass Object
(
[From] => 05:30
[To] => 22:00
)
[breaks] => stdClass Object
(
)
)
[4] => stdClass Object
(
[day] => Friday
[openAt] => stdClass Object
(
[From] => 05:30
[To] => 22:00
)
[breaks] => stdClass Object
(
)
)
[5] => stdClass Object
(
[day] => Saturday
[openAt] => stdClass Object
(
[From] => 07:00
[To] => 22:00
)
[breaks] => stdClass Object
(
)
)
[6] => stdClass Object
(
[day] => Sunday
[openAt] => stdClass Object
(
[From] => 07:00
[To] => 22:00
)
[breaks] => stdClass Object
(
)
)
)
)
)
)