fork(60) download
  1. <?php
  2. $a[] = '56';
  3. $a[] = '66';
  4. $a[] = '';
  5. $a[] = '58';
  6. $a[] = '85';
  7. $a[] = '';
  8. $a[] = '';
  9. $a[] = '76';
  10. $a[] = '';
  11. $a[] = '57';
  12. $a = array_filter($a);
  13. $average = array_sum($a)/count($a);
  14. echo $average;
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
66.333333333333