Hi this array contains more than one occurrences of the country how can I loop and out put all of them?
$url = 'http://maps.googleapis.com/maps/api/geocode/json?address=cordoba';
$json = @file_get_contents($url);
$jsondata = json_decode($json);
$status = $jsondata->status;
$address = '';
if($status == "OK")
{
$address_data = $jsondata->results[0]->address_components;
print_r( $address_data);
//echo $address_data[3]->long_name;
}
else
{
echo "No Data Found Try Again";
}