note 80764 deleted from language.operators.logical by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 15:13:41 +0000 |
| Subject: | note 80764 deleted from language.operators.logical by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189833@lists.php.net to get a copy of this message | ||
Note Submitter: Richard
----
Re Lawrence:
You sort of can do conditional evaluation:
$a=0 or $a="avocado";
echo "$a"; #Prints "avocado"
But oddly:
$b=0 || $b="banana";
echo $b; #Prints "banana"