I have a 3d array and needs to do something with it, was able to solve the problem using simple for each like this:
for($n=0;$n<count($d["T"]);$n++)
{
$d["T"][$n]["Pay"]=number_format($d["T"][$n]["Pay"], 2, '.', '');
}
I have a 3d array and needs to do something with it, was able to solve the problem using simple for each like this:
for($n=0;$n<count($d["T"]);$n++)
{
$d["T"][$n]["Pay"]=number_format($d["T"][$n]["Pay"], 2, '.', '');
}
foreach ($d["T"] as &$var) {
$var['Pay'] = number_format($var['Pay'], 2, '.', '');
}