Learning PHP and MySQL
Example 04-04 Order of precedence
2 + 4 - 5 == 1;
4 - 5 + 2 == 1;
4 * 5 / 2 == 10;
5 / 2 * 4 == 10;
2 + 4 - 5 == 1;
4 - 5 + 2 == 1;
4 * 5 / 2 == 10;
5 / 2 * 4 == 10;
Posted by on 08/03 at 08:09 AM
Next entry: Example 04-05 The multiplication is done last because of the override
Previous entry: Example 04-03 Lefthand expressions