Using Math in PHP
1. Addition Example
Example: 6 + 7 = 13
The '+' operator is used to add two numbers and get their total.
2. Subtraction Example
Example: 21 - 6 = 15
The '-' operator is used to subtract one number from another number.
3. Multiplication Example
Example: 5 * 5 = 25
The '*' operator is used to multiply numbers and get the product.
4. Division Example
Example: 100 / 10 = 10
The '/' operator is used to divide one number by another number.
5. Modulus Example
Example: 144 % 7 = 4
The '%' operator is used to find the remainder after division.