I have the following multidimensional array. Notice that payment_amount, payment_interest, and payment_principle are strings. I need to cast these values to floats. I am getting all twisted around, can someone suggest a foreach() that will accomplish this please?
array (size=12)
0 =>
array (size=4)
'payment_date' => string '2015-01-01' (length=10)
'payment_amount' => string '159609.00' (length=9)
'payment_interest' => string '26697.78' (length=8)
'payment_principle' => string '132911.22' (length=9)
1 =>
array (size=4)
'payment_date' => string '2015-02-01' (length=10)
'payment_amount' => string '159609.00' (length=9)
'payment_interest' => string '25039.44' (length=8)
'payment_principle' => string '134569.56' (length=9)
2 =>
array (size=4)
'payment_date' => string '2015-03-01' (length=10)
'payment_amount' => string '159609.00' (length=9)
'payment_interest' => string '23356.20' (length=8)
'payment_principle' => string '136252.80' (length=9)
3 =>
array (size=4)
'payment_date' => string '2015-04-01' (length=10)
'payment_amount' => string '159609.00' (length=9)
'payment_interest' => string '21653.04' (length=8)
'payment_principle' => string '137955.96' (length=9)
4 =>
array (size=4)
'payment_date' => string '2015-05-01' (length=10)
'payment_amount' => string '159609.00' (length=9)
'payment_interest' => string '19929.96' (length=8)
'payment_principle' => string '139679.04' (length=9)