protected function trim_left($string, $length) {
        return '...'.core_text::substr($string, core_text::strlen($string)-$length, $length);
    }
protected function trim_left($string, $length) {
        return '...'.core_text::substr($string, core_text::strlen($string)-$length, $length);
    }
protected function trim_left ( $ string , $ length ) { return '...' . core_text :: substr ( $ string , core_text :: strlen ( $ string ) - $ length , $ length ) ; }
Truncate a string from the left
@param string $string The string to truncate
@param int $length The length to truncate to
@return string The truncated string
Truncate a string from the left