note 10401 added to Comparison Operators
| From: | me at brianmoney dot com | Date: | Tue, 02 Jan 2001 02:17:01 +0000 |
| Subject: | note 10401 added to Comparison Operators | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9263@lists.php.net to get a copy of this message | ||
The echo in the previous post will work if the ternary expression is enclosed in ()
echo "You have had a fat butt for $x day". ( ($days>1) ? "s" : "" )
."\n";
http://www.php.net/manual/language.operators.comparison.php