The problem I have is that it does not add the values of several fixes contained in an array, I do not know why here the code:
<?php
function solution($number) {
for ($i = 0; $i < $number; $i++) {
$multiplo = $i * $number;
$arreglo = [];
$arreglo[$i] = str_split($multiplo);
print_r(array_sum(array_column($arreglo, '0')));
}
}
solution('3');
?>