note 113700 deleted from language.operators.precedence by peehaa
| From: | peehaa@php.net | Date: | Mon, 02 Dec 2013 09:36:30 +0000 |
| Subject: | note 113700 deleted from language.operators.precedence by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197721@lists.php.net to get a copy of this message | ||
Note Submitter: ohcc at 163 dot com
----
How come these 2 examples get the same result?
<?php
$a = 1;
$b = $a+$a++ + ++$a;
$a = 1;
echo $b;
?>
<?php
$b = $a+$a+$a++ + ++$a;
echo $b;
?>