Arithmetic operators are used to perform numeric calculations. The operators available are the following:
- Addition: +
- Subtraction: -
- Multiplication: *
- Division: /
- Modulus: %
- Shift left: -shl
- Shift right: -shr
As well as numeric calculations, the addition operator may also be used with strings, arrays, and hashtables; the multiplication operator may also be used with strings and arrays.