php 7.1 ?? code example
Example 1: php 7
<?php
function arraysSum(array ...$arrays): array
{
return array_map(function(array $array): int {
return array_sum($array);
}, $arrays);
}
print_r(arraysSum([1,2,3], [4,5,6], [7,8,9]));
Example 2: php 7
<?php
echo "oke";
?>