<?php
$sum1 = 0;
$sum2 = 0;
foreach($array['a'] AS $smallArray){
$sum1 += $smallArray['x'];
}
foreach($array AS $smallArray){
$sum2 += $smallArray['h']['n'];
}
solved find the sum of array value [closed]
<?php
$sum1 = 0;
$sum2 = 0;
foreach($array['a'] AS $smallArray){
$sum1 += $smallArray['x'];
}
foreach($array AS $smallArray){
$sum2 += $smallArray['h']['n'];
}
solved find the sum of array value [closed]