note 14051 added to language.expressions.php
| From: | pulstar at mail dot com | Date: | Sun, 15 Jul 2001 01:56:54 +0000 |
| Subject: | note 14051 added to language.expressions.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15399@lists.php.net to get a copy of this message | ||
ECHO is not a function, it's a command. So, don't use parentheses in it. Example:
$x=1;
echo "Can you understand ", $x==1 ? "my example" : "your example",
" now?"
http://www.php.net/manual/en/language.expressions.php