Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/lib/com/sergids/common/StringUtils.php
<?php
class StringUtils{
	function truncate($str, $len, $dots = "...") {
	    if (strlen($str) > $len) {
	        $dotlen = strlen($dots);
	        $str = substr_replace($str, $dots, $len - $dotlen);
	    }
	    return $str;
	}
}
?>
Return current item: Top Music module