PHP obtient la moyenne du tableau
$myArray=[1,5,4,3];
$average = array_sum($myArray)/count($myArray);
Friendly Hawk
$myArray=[1,5,4,3];
$average = array_sum($myArray)/count($myArray);
array(1) { [0]=> object(stdClass)#1826 (2) { ["page_id"]=> string(1) "5" ["avg(r_location)"]=> string(6) "4.0000" } }