Doing Math Operations in PHP

Addition of 165 and 257:

192

Subtraction of 65 and 127

-62

Division of 3.14 and 9

0.34888888888889

Modulus of 127 and 65

62

How it works? (Explanation)

There 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.

Source for the work above:-

Example