- array_map: documentation ( source)
- var_export: documentation ( source)
- array_product: documentation ( source)
- array_pop: documentation ( source)
<?php
$array = [
[4, 3, 5, 7, 210],
[4, 9, 5, 7, 210],
[4, 9, 25, 7, 210],
];
var_export(
array_map(
function($row) {
$row[] = array_product($row) / array_pop($row);
return $row;
},
$array
)
);