public static function getMaxKeyLength(array $array)
    {
        $maxKeyLength = '0';
        foreach ($array as $key => $value) {
            $currentLength = static::getVisibleStringLength($key);

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

        return $maxKeyLength;
    }
public static function getMaxKeyLength(array $array)
    {
        $maxKeyLength = '0';
        foreach ($array as $key => $value) {
            $currentLength = static::getVisibleStringLength($key);

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

        return $maxKeyLength;
    }
public static function getMaxKeyLength ( array $ array ) { $ maxKeyLength = '0' ; foreach ( $ array as $ key => $ value ) { $ currentLength = static :: getVisibleStringLength ( $ key ) ; if ( $ currentLength > $ maxKeyLength ) { $ maxKeyLength = $ currentLength ; } } return $ maxKeyLength ; }
Find longest string length among keys

Only visible characters are considered

@param array $array

@return int
Find longest string length among keys