PHP Function to Echo Out the Average of an Array
Posted on June 16, 2015 in PHP by Matt Jennings
<?php
// PHP function to echo out the average of an array
function compute_average($arr_to_avg)
{
$number_of_values = count($arr_to_avg);
…