magento 截取字符串

list.phtml文件

<?php echo $this->htmlEscape($_product->getName()) ?>

<?php echo $this->htmlEscape(Mage::helper('core/string')->truncate($_product->getName(),10,'…')) ?>

你可能感兴趣的:(字符串,截取,Magento)