Get Magento Version in Magento Programmatically?

Solution 1 :

$fetchmagentoversion = Mage::getVersion();
echo $fetchmagentoversion;


Solution 2 :

$fetchmagentoversion= new Mage;
$version_no=$fetchmagentoversion->getVersion();
echo $version_no;


Solution 3 :

include_once 'app/Mage.php';
umask(0);
Mage::app("default");
echo Mage::getVersion();
Latest


EmoticonEmoticon