note 50316 deleted from language.expressions by nlopess
| From: | nlopess@php.net | Date: | Thu, 19 Jan 2006 20:41:20 +0000 |
| Subject: | note 50316 deleted from language.expressions by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-102112@lists.php.net to get a copy of this message | ||
Note Submitter: Metju12
----
yasuo_ohgaki on12-Mar-2001 02:14 wrote:
>Manual defines "expression is anything that has value", therefore, parser will give
>error for following code.
>
>($val) ? echo('true') : echo('false');
better use:
echo ( $val ? 'true' : 'false' ) ;