- 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],
];
foreach ($array as &$row) {
array_pop($row);
$row[] = array_product($row);
}
var_export($array);