note 16340 added to language.operators.precedence
| From: | td at salesint dot com | Date: | Thu, 25 Oct 2001 13:28:05 +0000 |
| Subject: | note 16340 added to language.operators.precedence | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19421@lists.php.net to get a copy of this message | ||
Ok this might be just me but uhm if i understood correctly && is evaluated BEFORE =+ so
why?? does this evaluate true??
<?
$x = 2;
if ($x =+ 0 && true) print("Damn this prints??!?!<BR>");
?>
if I understood correctly this should first evaluate
0 && true which is false... that leaves 2 true which isn't ok but hell... it
doesn't give a parse error. the line will print tho'
--
http://www.php.net/manual/en/language.operators.precedence.php
http://master.php.net/manage/user-notes.php?action=edit+16340
http://master.php.net/manage/user-notes.php?action=delete+16340
http://master.php.net/manage/user-notes.php?action=reject+16340