note 66511 deleted from language.control-structures by felipe
| From: | felipe@php.net | Date: | Mon, 10 Dec 2007 18:35:31 +0000 |
| Subject: | note 66511 deleted from language.control-structures by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133288@lists.php.net to get a copy of this message | ||
Note Submitter: abu_hurayrah at hidayahonline dot org
----
Regarding lamfeust's example:
Just a note about initializing variable
<?php
if($foo=false)
print("true");
else
print("false");
// this print on screen false
?>
This will print out "false" due to the expression "$foo=false" returning the
value of the assignment - boolean false, in this case.
I'm not sure what, exactly, that had to do with initialization.