Breaking News

PHP-MySQLi Series Part 5.1 || Arithmetic operators





Arithmetic Operators:

The PHP arithmetic operators are used with numeric values to perform some arithmetical operations, like addition, subtraction, multiplication, division etc.



The following table shows the different types of arithmetical operators with examples and symbol.


Arithmetic Operators
Operators Name Examples
+ Addition $x+$y
- Subtraction $x-$y
* Multiplication $x * $y
/ Division $x / $y
% Modulus $x%$y



1 comment: