public static function getVisibleStringLength($string)
    {
        // remove escape characters
        $pattern     = '#' . static::ESCAPE_CHARACTER_REGEX . '#';
        $cleanString = preg_replace($pattern, '', $string);

        return strlen($cleanString);
    }
public static function getVisibleStringLength($string)
    {
        // remove escape characters
        $pattern     = '#' . static::ESCAPE_CHARACTER_REGEX . '#';
        $cleanString = preg_replace($pattern, '', $string);

        return strlen($cleanString);
    }
public static function getVisibleStringLength ( $ string ) { // remove escape characters $ pattern = '#' . static :: ESCAPE_CHARACTER_REGEX . '#' ; $ cleanString = preg_replace ( $ pattern , '' , $ string ) ; return strlen ( $ cleanString ) ; }
Compute string length of only visible characters

@param $string

@return int
Compute string length of only visible characters