Magento – Product name/ Description text length limit in Magento

There is one in Mage_Core_Helper_String called truncate.
You can call it like this,

1
Mage::helper('core/string')->truncate($string, $length);

For example if you need limit your product description text in your phtml file you can use following example.

<!--Limit ShortDescription-->
<?php $short_description = $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
<?php echo Mage::helper('core/string')->truncate($short_description, '450'); ?>