math.php — Arithmetic Operators

Explanation

The plus sign adds numbers, the minus sign subtracts, the asterisk multiplies, and the slash divides. The percent operator returns the remainder, which helps with even/odd checks. Exponentiation raises a number to a power, which is handy for growth or repeated multiplication.

Back to index