Convert ISO country code to country name

While using Drupal Address Field module, When it needs to customize field, its variable returns country as ISO code. Like, if "Pakistan" will return "PK".
This funtion will help to convert ISO country code to country name.
 
 
<?php
$country_iso = $node->field_address['und'][0]['country']; // Example, return "TR"
$country = _addressfield_country_options_list($country_iso);
print $country; // will print Turkey
?>
Tags: