0
Hello,
I have a array
of plots, and I want to return by extenso
, briefly to quantidade de parcelas
and the valores
.
Example
- Entrance of R $ 15,00 + 3 installments of R $ 15,00
In my test code, I could not get this result, even using foreach
<?php
$installments = [];
for ($x = 0; $x < 4; $x++) {
$installments[$x]['installment'] = $x + 1;
$installments[$x]['value'] = 15.0;
}
$policy['installment'] = $installments;
$policy['in_full'] = get_in_full($installments);
function get_in_full($installments) {
foreach ($installments as $installment)
{
return 'result';
}
//return 'Entrada de R$ 15,00 + 3 parcelas de R$ 15,48';
}
echo '<pre>';
print_r($policy);
echo '</pre>';
?>