public static function stringLimiter($string, $limit)
    {
        if (strlen($string) <= $limit || $limit == -1) {
            return $string;
        } else {
            $y = mb_substr($string, 0, $limit, "utf-8").'...';

            return $y;
        }
    }
public static function stringLimiter($string, $limit)
    {
        if (strlen($string) <= $limit || $limit == -1) {
            return $string;
        } else {
            $y = mb_substr($string, 0, $limit, "utf-8").'...';

            return $y;
        }
    }
public static function stringLimiter ( $ string , $ limit ) { if ( strlen ( $ string ) <= $ limit || $ limit == - 1 ) { return $ string ; } else { $ y = mb_substr ( $ string , 0 , $ limit , "utf-8" ) . '...' ; return $ y ; } }
Limits event description
@param  string $string content string to limit
@param  int    $limit  maximum number of letters
@return string
Limits event description