note 81779 deleted from language.operators by danbrown
| From: | danbrown@php.net | Date: | Fri, 30 Jan 2009 20:38:46 +0000 |
| Subject: | note 81779 deleted from language.operators by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149996@lists.php.net to get a copy of this message | ||
Note Submitter: janturon at email dot cz
----
Thanks to phpnet dot 20 dot dpnsubs at xoxy dot net for this, it saved me a lot of time. The
brackets sucks, but you can have fun with them - make smileys valid code :o)
$a = 2;
echo (
$a == 1 ? 'one' :(
$a == 2 ? 'two' :(
$a == 3 ? 'three' :(
$a == 4 ? 'four'
:0) ) )
);