public static function getMaxValueLength(array $array)
    {
        $maxValueLength = '0';
        foreach ($array as $value) {
            $currentLength = static::getVisibleStringLength($value);

            if ($currentLength > $maxValueLength) {
                $maxValueLength = $currentLength;
            }
        }

        return $maxValueLength;
    }
public static function getMaxValueLength(array $array)
    {
        $maxValueLength = '0';
        foreach ($array as $value) {
            $currentLength = static::getVisibleStringLength($value);

            if ($currentLength > $maxValueLength) {
                $maxValueLength = $currentLength;
            }
        }

        return $maxValueLength;
    }
public static function getMaxValueLength ( array $ array ) { $ maxValueLength = '0' ; foreach ( $ array as $ value ) { $ currentLength = static :: getVisibleStringLength ( $ value ) ; if ( $ currentLength > $ maxValueLength ) { $ maxValueLength = $ currentLength ; } } return $ maxValueLength ; }
Find longest string length among values

Only visible characters are considered

@param array $array

@return int
Find longest string length among values