Arithmetic operators for PHP

view full story

http://www.go2linux.org – PHP arithmetic operators Today we will lear about aritmetic operators for PHP. These are the arithmetic operators, below also a simple example, using the sum operator, to perform a simple sum of three numbers. <!--break--> Operation Example Result Sum $a + $b The sum of a and b Substraction $a - $b Difference of a and b Multiplication $a * $b Product of a and b Division $a / $b Quotient of a and b Modulus $a % $b Remainder Examples of Arithmetic operators Let's see a little example of some PHP coding to (HowTos)