Answers for "how to get the average of an array in php"

PHP
2

php get array average

$myArray=[1,5,4,3];
$average = array_sum($myArray)/count($myArray);
Posted by: Guest on September-26-2020

Code answers related to "how to get the average of an array in php"

Browse Popular Code Answers by Language