Changing the default precedence using parentheses : Arithmetic Operators « Operator « PHP
- PHP
- Operator
- Arithmetic Operators
Changing the default precedence using parentheses
<?
echo 2 * 3 + 4 + 1;
echo 2 * (3 + 4 + 1);
?>
Related examples in the same category