note 19717 deleted from language.expressions by tularis
| From: | tularis@php.net | Date: | Tue, 12 Oct 2004 14:02:20 +0000 |
| Subject: | note 19717 deleted from language.expressions by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78413@lists.php.net to get a copy of this message | ||
Note Submitter:
----
I found this worked nicely:
echo $var ? "yup" : "nope";
This doesnt work:
echo $var ? "yup";
you need to go:
echo $var ? "yup" : "";
-- there is not space in "", but it may appear that way above