protected static function strLen($string){
    $encoding = function_exists('mb_detect_encoding') ? mb_detect_encoding($string) : false;
    return $encoding ? mb_strlen($string, $encoding) : strlen($string);
  }
protected static function strLen($string){
    $encoding = function_exists('mb_detect_encoding') ? mb_detect_encoding($string) : false;
    return $encoding ? mb_strlen($string, $encoding) : strlen($string);
  }
protected static function strLen ( $ string ) { $ encoding = function_exists ( 'mb_detect_encoding' ) ? mb_detect_encoding ( $ string ) : false ; return $ encoding ? mb_strlen ( $ string , $ encoding ) : strlen ( $ string ) ; }
Calculates real string length

@param   string $string
@return  int
Calculates real string length