note 94994 deleted from function.func-get-arg by danbrown
| From: | danbrown@php.net | Date: | Mon, 07 Dec 2009 17:12:39 +0000 |
| Subject: | note 94994 deleted from function.func-get-arg by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163672@lists.php.net to get a copy of this message | ||
Note Submitter: Cameron
----
@beta3designs[at]gmail[dot]com:
Better yet:
<?php
function avg() {
return array_sum(function_get_args())/count(function_get_args());
}
?>