Get current category id Magento

<?php

$_category = Mage::registry(“current_category”);

echo $currentCategoryId= $_category->getId();

?>

Share