Tools.php
public static function maxCount()
    {
        $array = \func_get_args();
        if (!\is_array($array)) {
            return 0;
        }

        $maxCnt = 0;
        foreach ($array as $item) {
            if (!\is_array($item)) {
                continue;
            }
            $cnt = \count($item);
            $maxCnt = $cnt > $maxCnt ? $cnt : $maxCnt;
        }

        return $maxCnt;
    }
public static function maxCount()
    {
        $array = \func_get_args();
        if (!\is_array($array)) {
            return 0;
        }

        $maxCnt = 0;
        foreach ($array as $item) {
            if (!\is_array($item)) {
                continue;
            }
            $cnt = \count($item);
            $maxCnt = $cnt > $maxCnt ? $cnt : $maxCnt;
        }

        return $maxCnt;
    }
public static function maxCount ( ) { $ array = \ func_get_args ( ) ; if ( ! \ is_array ( $ array ) ) { return 0 ; } $ maxCnt = 0 ; foreach ( $ array as $ item ) { if ( ! \ is_array ( $ item ) ) { continue ; } $ cnt = \ count ( $ item ) ; $ maxCnt = $ cnt > $ maxCnt ? $ cnt : $ maxCnt ; } return $ maxCnt ; }
Get max count of multiple arrays

@param array ...$array Array of arrays to count
@return int Max item count
Get max count of multiple arrays