note 29921 added to function.echo
| From: | yoda at rack1 dot php dot net | Date: | Fri, 28 Feb 2003 19:26:01 +0000 |
| Subject: | note 29921 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44672@lists.php.net to get a copy of this message | ||
I don't know if this was supposed to work but it did, echo and the ternary operator:
echo ( $a ? "a is good" : "a is bad");
--
http://www.php.net/manual/en/function.echo.php
http://master.php.net/manage/user-notes.php?action=edit+29921
http://master.php.net/manage/user-notes.php?action=delete+29921
http://master.php.net/manage/user-notes.php?action=reject+29921