Jump to content

Adding variables


Prank

Recommended Posts

Hi Guys,

I am a bit unsure of how to do this, I'd appreciate any help.

What I am trying to do is add up a total number as reported by variables, but the problem is that its the same variable..

For eg;
[code]
while {

$total = 3;

}
[/code]

How would I add all the $total's for each instance that the 'while' was run?

I hope this makes sense and I am assuming it is an easy answer..

Thanks in advance,

Christian
Link to comment
https://forums.phpfreaks.com/topic/7374-adding-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.