note 36430 added to language.operators

From: Date: Thu, 09 Oct 2003 09:30:51 +0000
Subject: note 36430 added to language.operators
Groups: php.notes 
Request: Send a blank email to php-notes+get-58095@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/language.operators.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36430 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36430&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36430&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#58095) next »