Am trying to re-work a calculator that was perl, into a php one.
The thing that I find odd is the @ in front of the vars. If what I have read is correct, this is a perl array.
Trying to figure how to re-write this in php.
$total_lump=$final_expenses + $outstanding_debts + $mortgage + $college_funding;
$yearly=$monthly * 12;
$yearnum=1;
@inflation_table = ($yearly);
$temp2spouse = $yearly;
$inflate_rate=(1 + $inflation_est);
while ($how_many_years >= $yearnum) {
if ($yearnum > 1) {
$temp2spouse= int (($temp2spouse * $inflate_rate) + .524);}
if ($yearnum > 1) {push (@inflation_table, $temp2spouse);}
$yearnum++;
}
foreach $inflation_table (@inflation_table) {
$total_cash=$total_cash + $inflation_table;
$items++;
}
Anyone have experience in converting perl into php?