Magento subcategories list filtered by category name

$collection = Mage::getModel(‘catalog/category’)->getCollection()
->addFieldToFilter(‘name’,array(‘like’ => ‘%New Arrivals%’))
->addFieldToFilter(‘parent_id’, array(‘eq’=>$categoryId ))
->load();

foreach ($collection as $category):
echo $category->getName();
endforeach;

Share