magento Get category name from product page Get the current category


Example

    $categoryName = Mage::registry('current_category')->getName();
    foreach ($categoryName as $_category):
       $categoryName = $_category->getName();
    endforeach;