note 56779 deleted from function.echo by nlopess
| From: | nlopess@php.net | Date: | Mon, 16 Jul 2007 18:01:42 +0000 |
| Subject: | note 56779 deleted from function.echo by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-128625@lists.php.net to get a copy of this message | ||
Note Submitter: lorenpr at gmail dot com
----
I hope this ternary thing isn't overkill. Last thing - I would just like to make you aware of
the side effect when you do this statement,
echo $some_var ? print 'true': print 'false';
The result would be either 'true1' or 'false1', depending on whether $some_var
is true or false respectively. This happens because of what I mentioned earlier. Figure it out.