Array Durchschnitt in PHP ermitteln 22.09.2022 1 Minute Lesezeit Quick & short & dirty… 1 2 3 4 5 6 7 $a[] = 10; $a[] = 15; $a[] = 20; $a = array_filter($a); $average = array_sum($a)/count($a); echo $average; PHP, Code Snippet php snippet Teilen