note 68663 added to language.control-structures

From: Date: Sat, 05 Aug 2006 23:34:40 +0000
Subject: note 68663 added to language.control-structures
Groups: php.notes 
Request: Send a blank email to php-notes+get-115575@lists.php.net to get a copy of this message
in the two previous examples, both are correct. for $foo = false, you're assigning the value while operating in the condition, so its just like: $foo = false; if( $foo ) print( 'a' ); else print( 'b' ); ....returns 'b'; for $foo == false, it will return true or false based on if $foo equals false or true, respectively. ---- Server IP: 64.71.164.2 Probable Submitter: 24.144.99.2 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/language.control-structures.php Edit -- https://master.php.net/note/edit/68663 Del: integrated -- https://master.php.net/note/delete/68663/integrated Del: useless -- https://master.php.net/note/delete/68663/useless Del: bad code -- https://master.php.net/note/delete/68663/bad+code Del: spam -- https://master.php.net/note/delete/68663/spam Del: non-english -- https://master.php.net/note/delete/68663/non-english Del: in docs -- https://master.php.net/note/delete/68663/in+docs Del: other reasons-- https://master.php.net/note/delete/68663 Reject -- https://master.php.net/note/reject/68663 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#115575) next »