<?php $TestResult = [ 'Smith' => ['98', '100', '78', '91'], 'Johnson' => ['67', '85', '92', '88'] ]; $Total = array_sum($TestResult['Smith']); $Average = $Total/count($TestResult['Smith']); echo $Average;
You have javascript disabled. You will not be able to edit any code.