Extract data out of an object array in PHP
I have the following array and can't figure out how to get the data out:

Array ( [0] => stdClass Object ( [address_components] => Array ( [0] => stdClass Object ( [long_name] => 180 [short_name] => 180 [types] => Array ( [0] => street_number ) ) [1] => stdClass Object ( [long_name] => Campus Dr [short_name] => Campus Dr [types] => Array ( [0] => route ) ) [2] => stdClass Object ( [long_name] => Arcadia [short_name] => Arcadia [types] => Array ( [0] => locality [1] => political ) ) [3] => stdClass Object ( [long_name] => Los Angeles [short_name] => Los Angeles [types] => Array ( [0] => administrative_area_level_2 [1] => political ) ) [4] => stdClass Object ( [long_name] => California [short_name] => CA [types] => Array ( [0] => administrative_area_level_1 [1] => political ) ) [5] => stdClass Object ( [long_name] => United States [short_name] => US [types] => Array ( [0] => country [1] => political ) ) [6] => stdClass Object ( [long_name] => 91007 [short_name] => 91007 [types] => Array ( [0] => postal_code ) ) ) [formatted_address] => 180 Campus Dr, Arcadia, CA 91007, USA [geometry] => stdClass Object ( [location] => stdClass Object ( [lat] => 34.1301857 [lng] => -118.0333596 ) [location_type] => ROOFTOP [viewport] => stdClass Object ( [northeast] => stdClass Object ( [lat] => 34.131534680292 [lng] => -118.03201061971 ) [southwest] => stdClass Object ( [lat] => 34.128836719709 [lng] => -118.03470858029 ) ) ) [partial_match] => 1 [types] => Array ( [0] => street_address ) ) ) 

This is stored in a variable called `$results`
Extract data out of an object array in PHP
===

I have the following array and can't figure out how to get the data out:

Array ( [0] => stdClass Object ( [address_components] => Array ( [0] => stdClass Object ( [long_name] => 180 [short_name] => 180 [types] => Array ( [0] => street_number ) ) [1] => stdClass Object ( [long_name] => Campus Dr [short_name] => Campus Dr [types] => Array ( [0] => route ) ) [2] => stdClass Object ( [long_name] => Arcadia [short_name] => Arcadia [types] => Array ( [0] => locality [1] => political ) ) [3] => stdClass Object ( [long_name] => Los Angeles [short_name] => Los Angeles [types] => Array ( [0] => administrative_area_level_2 [1] => political ) ) [4] => stdClass Object ( [long_name] => California [short_name] => CA [types] => Array ( [0] => administrative_area_level_1 [1] => political ) ) [5] => stdClass Object ( [long_name] => United States [short_name] => US [types] => Array ( [0] => country [1] => political ) ) [6] => stdClass Object ( [long_name] => 91007 [short_name] => 91007 [types] => Array ( [0] => postal_code ) ) ) [formatted_address] => 180 Campus Dr, Arcadia, CA 91007, USA [geometry] => stdClass Object ( [location] => stdClass Object ( [lat] => 34.1301857 [lng] => -118.0333596 ) [location_type] => ROOFTOP [viewport] => stdClass Object ( [northeast] => stdClass Object ( [lat] => 34.131534680292 [lng] => -118.03201061971 ) [southwest] => stdClass Object ( [lat] => 34.128836719709 [lng] => -118.03470858029 ) ) ) [partial_match] => 1 [types] => Array ( [0] => street_address ) ) ) 

This is stored in a variable called `$results`