Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get array average

$myArray=[1,5,4,3];
$average = array_sum($myArray)/count($myArray);
 
PREVIOUS NEXT
Tagged: #php #array #average
ADD COMMENT
Topic
Name
7+2 =