note 10011 deleted from Comparison Operators by jimw
| From: | jimw@php.net | Date: | Thu, 11 Jan 2001 02:59:58 +0000 |
| Subject: | note 10011 deleted from Comparison Operators by jimw | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9615@lists.php.net to get a copy of this message | ||
Here is a double tertinary:
$foo = 'yes' ;
$bar = 'no' ;
echo ( $foo == 'yes' ? ( $bar == 'no' ? 'foo is yes and bar is no' :
'foo is yes but bar is not no' ) : 'foo is not yes, did not get to bar' ) ;