PHP Operators: Operator PriorityTag: operator, Operator Priority Category: PHP Basicpost: 08 Mar 2008 read: 1,187 PHP Operators Step By Step Tutorial - Part 15: For the complex expression which entangled of many operator and operand, the operators will be done by PHP according to its priority. Example:
For that, 24/4 will be done first, then the result of the division will become the reduction of 24 so that yields 19 non 1. That thing is caused by the priority of operator/higher than operator -. The table of operator priority:
Operator in the same line have the same priority.
Pay attention to the example of using string operator at script as following:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| | Give Your Opinion | Recommend |
|


