Addition of 165 and 257:
Subtraction of 65 and 127
-62Division of 3.14 and 9
0.34888888888889Modulus of 127 and 65
62There are a number of basic math operations available in PHP that can be used to calculate numbers. Adding, subtracting, and dividing are some basic operations. Code uses them by using the correct symbol for the operation they represent, and they perform operations as you would expect. The + and - symbols are used, respectively, for addition and subtraction.