Operations in PHP are similar to what you see in most programming languages. For example, $a + $b adds two variables. Precedence of operations is similar to other languages like C++ and Java. See php.net for details. Order can be controlled as in most other languages through parentheses. The following are some of the operators (some which may be new to you or different than other languages)
- * = multiplication
- / = division
- . = string concatination
- ++ = increment
- -- = decrement
- instanceof = tells if object is an instance of a class (i.e. $a instanceof DogClass)