By accessing the magento collections we can get country list in magento,
Here is the code to get all the countries in magento
<?php
$collection = Mage::getModel('directory/country')->getCollection();
foreach ($collection as $country)
{
$cid = $country->getId();
$cname = $country->getName();
echo 'Country ID -> '.$cid.' Country Name -> '.$cname.'<br/>';
}
?>
Hope you get country list in magento using this code snippet.

Leave a Reply