Re: Looping Addition

From: Date: Thu, 05 Dec 2002 13:24:37 +0000
Subject: Re: Looping Addition
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-127143@lists.php.net to get a copy of this message
> One more question... If I then wanted to do this for the other operations > (such as multiplication, division, etc), how would I do that? Assuming you've figured out how to do an array... You'll have to loop through the values like in the code that others posted. foreach($_POST['number'] as $num) { //calculate total here with $num } * = multiplication / = divide ---John Holmes...

« previous php.general (#127143) next »