Yngvarr

Generation

generate functionTue, 15 Nov 2022

выбрать самый большой массив

$max = function(...$arrays) { return max(array_map('max', $arrays)); }; $max([1, 2, 3], [1, 1, 1], [1, 1, 1, 1]); // 4

Questions about programming?Chat with your personal AI assistant