public static function stringLength($value)
    {
        if (is_null(self::$multiByteSupport)) {
            self::$multiByteSupport = intval(ini_get('mbstring.func_overload'));
        }

        if (self::$multiByteSupport & 2) {
            return mb_strlen($value, '8bit');
        } else {
            return strlen($value);
        }
    }
public static function stringLength($value)
    {
        if (is_null(self::$multiByteSupport)) {
            self::$multiByteSupport = intval(ini_get('mbstring.func_overload'));
        }

        if (self::$multiByteSupport & 2) {
            return mb_strlen($value, '8bit');
        } else {
            return strlen($value);
        }
    }
public static function stringLength ( $ value ) { if ( is_null ( self :: $ multiByteSupport ) ) { self :: $ multiByteSupport = intval ( ini_get ( 'mbstring.func_overload' ) ) ; } if ( self :: $ multiByteSupport & 2 ) { return mb_strlen ( $ value , '8bit' ) ; } else { return strlen ( $ value ) ; } }
Determine if we should use mb_strlen or stock strlen.

@param string $value The string value to check

@return int Size of string

@see MHlavac\Gearman\Connection::$multiByteSupport
Determine if we should use mb_strlen or stock strlen .