note 95416 deleted from function.func-get-arg by danbrown

From: Date: Sat, 02 Jan 2010 15:44:48 +0000
Subject: note 95416 deleted from function.func-get-arg by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164537@lists.php.net to get a copy of this message
Note Submitter: jackfoxmail at gmail dot com ---- A much more efficient way then the example shown by beta3designs [at] gmail [dot] com <?php function avg(){ return array_sum(func_get_args()) / func_num_args(); } echo sprintf("%.2f", avg(2,1,2,1,3,4,5,1,3,6)); ?>

« previous php.notes (#164537) next »