Jump to content

$this - multiplication?


markstrange

Recommended Posts

That will multiply $qty by 2 and then add it on to the current value of $this->volume

 

For example, say $this->volume was set to 5 and $qty is set to 10, when the following is run

 

$this->volume += ($qty * 2);

 

$this->volume will equal 25

Link to comment
https://forums.phpfreaks.com/topic/149863-this-multiplication/#findComment-787016
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.