FeaturePhp/Helper/_String.php
public static function getMaxLength($array, $key) {
        $maxLen = 0;
        foreach ($array as $element) {
            $str = call_user_func(array($element, $key));
            $maxLen = strlen($str) > $maxLen ? strlen($str) : $maxLen;
        }
        return $maxLen;
    }
public static function getMaxLength($array, $key) {
        $maxLen = 0;
        foreach ($array as $element) {
            $str = call_user_func(array($element, $key));
            $maxLen = strlen($str) > $maxLen ? strlen($str) : $maxLen;
        }
        return $maxLen;
    }
public static function getMaxLength ( $ array , $ key ) { $ maxLen = 0 ; foreach ( $ array as $ element ) { $ str = call_user_func ( array ( $ element , $ key ) ) ; $ maxLen = strlen ( $ str ) > $ maxLen ? strlen ( $ str ) : $ maxLen ; } return $ maxLen ; }
Returns the maximum member length of an array of objects.
@param array $array
@param callable $key
@return int
Returns the maximum member length of an array of objects .