How to get sub category of a category in magento?

How to get sub category of a category in magento?

just follow the below code.

 <?php

$_helper = Mage::helper(‘catalog/category’);
$_categories = $this->getCurrentChildCategories();
foreach ($_categories as $_category) :
if (count($_subcategories) > 0) :
$_category = Mage::getModel(‘catalog/category’)->load($_category->getId());
$_subcategories = $_category->getChildrenCategories();
foreach ($_subcategories as $_subcategory):
<li><a href=”<?php $_helper->getCategoryUrl($_subcategory) ?>”><?php echo $currentCat->getName();?></a></li>
endforeach;
endif;
endforeach;
?>

Hope it will work.