10 + 5 = 15
10 - 5 = 5
10 * 5 = 50
10 / 5 = 2
10 % 5 = 0
Incrementing num3: 6
In PHP, Operators are used to perform mathematical operations. Operator basics:
+
(Addition): Adds two numbers together.-
(Subtraction): Subtracts the second number from the first.*
(Multiplication): Multiplies two numbers./
(Division): Divides the first number by the second.%
(Modulus): Returns the remainder of the division of the first number by the second.++
(Increment): Increases the value of a variable by 1.