note 70426 added to language.control-structures

From: Date: Mon, 16 Oct 2006 10:58:11 +0000
Subject: note 70426 added to language.control-structures
Groups: php.notes 
Request: Send a blank email to php-notes+get-118568@lists.php.net to get a copy of this message
Considering how important the "if" construct is there's not alot of love given to this section.. I hope this simplifies the below examples. <?php $a = "set"; if ($b = $a) echo "will display this. \$b = $b"; unset($a); if ($c = $a) echo "Doesn't dispay this"; if(isset($c)) echo "\$c = $c"; // returns nothing as $c isn't set /* returns will display this. $b = set */ ?> ---- Server IP: 83.138.144.80 Probable Submitter: 85.210.133.66 ---- Manual Page -- http://www.php.net/manual/en/language.control-structures.php Edit -- https://master.php.net/note/edit/70426 Del: integrated -- https://master.php.net/note/delete/70426/integrated Del: useless -- https://master.php.net/note/delete/70426/useless Del: bad code -- https://master.php.net/note/delete/70426/bad+code Del: spam -- https://master.php.net/note/delete/70426/spam Del: non-english -- https://master.php.net/note/delete/70426/non-english Del: in docs -- https://master.php.net/note/delete/70426/in+docs Del: other reasons-- https://master.php.net/note/delete/70426 Reject -- https://master.php.net/note/reject/70426 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#118568) next »