public static function len($string): int
    {
        if (self::isMBString()) {
            return mb_strlen($string, self::$encoding);
        }

        return strlen($string); // @codeCoverageIgnore
    }
public static function len($string): int
    {
        if (self::isMBString()) {
            return mb_strlen($string, self::$encoding);
        }

        return strlen($string); // @codeCoverageIgnore
    }
public static function len ( $ string ) : int { if ( self :: isMBString ( ) ) { return mb_strlen ( $ string , self :: $ encoding ) ; } return strlen ( $ string ) ; // @codeCoverageIgnore }
Get string length

@param $string
@return int
Get string length