24
Ops My mistake guys, im little nervous right now (this big update)
The problem isnt in "static function", its in this line:
return (strlen($str) - $start <= $length) ? substr($str, $start, $length) : substr($str, $start, $length - strlen($trimmarker)) . $trimmarker;
must be:
return (strlen($str) - $start <= $length) ? mb_substr($str, $start, $length) : mb_substr($str, $start, $length - strlen($trimmarker)) . $trimmarker;
just replace "substr" with "mb_substr"