src/Yubikey.php
protected static function safeStrlen($string)
    {
        // Optimization -- only search once:
        static $exists = null;
        if ($exists === null) $exists = \function_exists('mb_strlen');
        if ($exists) return \mb_strlen($string, '8bit');
        return \strlen($string);
    }
protected static function safeStrlen($string)
    {
        // Optimization -- only search once:
        static $exists = null;
        if ($exists === null) $exists = \function_exists('mb_strlen');
        if ($exists) return \mb_strlen($string, '8bit');
        return \strlen($string);
    }
protected static function safeStrlen ( $ string ) { // Optimization -- only search once: static $ exists = null ; if ( $ exists === null ) $ exists = \ function_exists ( 'mb_strlen' ) ; if ( $ exists ) return \ mb_strlen ( $ string , '8bit' ) ; return \ strlen ( $ string ) ; }
Get the length of a string, irrespective to mbstring.func_overload

@param string $string
@return int
Get the length of a string irrespective to mbstring . func_overload