How to check You are in Home Page in Magento?

This is very simple just below code copy and paste in your .phtml file and run.

<?php
if($this->getUrl(”) == $this->getUrl(‘*/*/*’, array(‘_current’=>true, ‘_use_rewrite’=>true))):
echo “Homepage”;
else:
echo “Not in Homepage”;
endif;
?>

Hope it will work.