Can't you just count the elements and then divide the total by the count?
It seems pretty obfuscating to consider a function that takes an unknown
number of elements, unless it were an array... still, seems pretty easy to
count and divide total... doesn't it?
> ----- Original Message -----
> From: "JohnP" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 29, 2002 20:55
> Subject: [PHP] Average Number For Math Functions
> Ok I looked at all the math functions for PHP but saw no way of returning
> the average of a set of numbers - I plan on using this for a rating
> any help?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php