Get magento version by coding

Get magento version by coding

$var= new Mage;
$version=$var->getVersion();
echo $version;

Labels: