public static function length($string)
    {
        if (function_exists('mb_strlen')) {
            return mb_strlen($string, static::getEncoding());
        }

        if (function_exists('iconv_strlen')) {
            return iconv_strlen($string, static::getEncoding());
        }

        return false;
    }
public static function length($string)
    {
        if (function_exists('mb_strlen')) {
            return mb_strlen($string, static::getEncoding());
        }

        if (function_exists('iconv_strlen')) {
            return iconv_strlen($string, static::getEncoding());
        }

        return false;
    }
public static function length ( $ string ) { if ( function_exists ( 'mb_strlen' ) ) { return mb_strlen ( $ string , static :: getEncoding ( ) ) ; } if ( function_exists ( 'iconv_strlen' ) ) { return iconv_strlen ( $ string , static :: getEncoding ( ) ) ; } return false ; }
Calculates count of characters in string.
@param $string
@return bool|int
Calculates count of characters in string .