protected function _strlen($string)
    {
        $encoding = function_exists('mb_detect_encoding') ? mb_detect_encoding($string) : false;
        return $encoding ? mb_strlen($string, $encoding) : strlen($string);
    }
protected function _strlen($string)
    {
        $encoding = function_exists('mb_detect_encoding') ? mb_detect_encoding($string) : false;
        return $encoding ? mb_strlen($string, $encoding) : strlen($string);
    }
protected function _strlen ( $ string ) { $ encoding = function_exists ( 'mb_detect_encoding' ) ? mb_detect_encoding ( $ string ) : false ; return $ encoding ? mb_strlen ( $ string , $ encoding ) : strlen ( $ string ) ; }
Get valid string length
@param   string $string Some string
@return  int
Get valid string length