note 36430 deleted from language.operators by sniper
| From: | sniper@php.net | Date: | Mon, 13 Oct 2003 00:07:08 +0000 |
| Subject: | note 36430 deleted from language.operators by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58375@lists.php.net to get a copy of this message | ||
Note Submitter: ramkumaravhss@yahoo.com
----
Someone was saying that = has more precedence that +.But if following script is executed
<?php
$a = 10 + $b=10-$c=20;
echo "a=$a, b=$b";
?>
Output:a=0, b=-10
This means that the script is executed from right to left without any precedence of operator i.e., +
and = have same precedence.