note 8078 added to Operator Precedence
| From: | alyssa at theworldisflat dot com | Date: | Sat, 26 Aug 2000 03:43:11 +0000 |
| Subject: | note 8078 added to Operator Precedence | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3286@lists.php.net to get a copy of this message | ||
And for those who didn't already know:
the above example of 1 + 5 * 3 which equals 16...the precedence can be changed by adding () like so:
(1 + 5) * 3 so it then equals 18. :o)
Alyssa
http://www.php.net/manual/language.operators.precedence.php