The array I’m working with gives me results like this:
[birthplace] => Array
(
[0] => a:11:{
s:7:"address"; s:16:"Phoenix, AZ, USA";
s:3:"lat"; d:33.4483771;
s:3:"lng";d:-112.0740373;
s:4:"zoom"; i:10;
s:8:"place_id"; s:27:"theid";
s:4:"name"; s:7:"Phoenix";
s:4:"city"; s:7:"Phoenix";
s:5:"state"; s:7:"Arizona";
s:11:"state_short"; s:2:"AZ";
s:7:"country"; s:14:"United States";
s:13:"country_short"; s:2:"US";
}
)
I don’t even know the name of this structure. How can I extract and echo values from it, like the “address” as “Arizona, AZ, USA”? I tried things around $varArray['birthplace'][0]
, but no idea how it works exactly.