PHP Math Operators

Addition

10 + 3 = 13

Subtraction

10 - 3 = 7

Multiplication

10 * 3 = 30

Division

10 / 3 = 3.3333333333333

Modulus

10 % 3 = 1

Exponentiation

10 ** 3 = 1000

Explanation of Operators

The plus sign adds two numbers together. The subtraction sign subtracts one number from another. The multiplication sign multiplies two numbers. The division sign (or slash) divides one number by another. The percent sign gives the remainder after division. The exponents (or double asterisks) raises one number to the power of another number.