note 102341 deleted from language.operators.precedence by hholzgra

From: Date: Thu, 02 Aug 2012 14:57:42 +0000
Subject: note 102341 deleted from language.operators.precedence by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189788@lists.php.net to get a copy of this message
Note Submitter: charles at pilger dot com dot br ---- Be very careful with the precedence. See this code: <?php $a = 1; $b = null; $c = isset($a) && isset($b); $d = ( isset($a) and isset($b) ); $e = isset($a) and isset($b); var_dump($a, $b, $c, $d, $e); ?> Result: int(1) NULL bool(false) bool(false) bool(true) <==

« previous php.notes (#189788) next »