This functions seems so powerful... just when i saw it i thought about writing a fast average of n numbers function so here it is, it is very simple... example usage included.<?php//Calculate the average of the numbers givenfunction avg(){ $sum = 0; for($i = 0; $i < func_num_args(); $i++){ $sum += func_get_arg($i); } $avg = $sum / func_num_args(); return $avg;}echo sprintf("%.2f",avg(2,1,2,1,3,4,5,1,3,6));?>