Zacks PHP Math Operators

Our first variable is named a, and its value is: 10
Our second variable is named b, and its value is: 3

Addition: 10 + 3 = 13

This PHP operator adds two numbers together.


Subtraction: 10 - 3 = 7

This PHP operator subtracts the second number from the first.


Multiplication: 10 * 3 = 30

This PHP operator multiplies two numbers.


Division: 10 / 3 = 3.3333333333333

This PHP operator divides the first number by the second.


Modulus: 10 % 3 = 1

This PHP operator returns the remainder of a division.