note 41866 deleted from language.operators by tularis
| From: | tularis@php.net | Date: | Tue, 12 Oct 2004 14:05:43 +0000 |
| Subject: | note 41866 deleted from language.operators by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78418@lists.php.net to get a copy of this message | ||
Note Submitter: Matt AKA Junkie
----
If both (expr2) and (expr3) use the same function, the ternary operator can be used like this:
<?
echo isset($var) ? '$var is set!' : 'boo-hoo, $var isn\'t set';
?>