" . $question[0]; //average echo "⌀" . round( ($question[1]+2*$question[2]+3*$question[3]+4*$question[4]+5*$question[5]) /(array_sum(array_slice($question,1,5))), 2) . "\n"; echo "
\n"; echo "" . $question[$i] . "
" . $tutorName . "\n"; //average echo "⌀" . round( ($tutor[0]+2*$tutor[1]+3*$tutor[2]+4*$tutor[3]+5*$tutor[4]) /(array_sum($tutor)-$tutor[5]), 2) . "\n"; echo "
\n"; echo "" . $tutor[$i] . "