note 10380 deleted from Comparison Operators by jimw
| From: | jimw@php.net | Date: | Thu, 11 Jan 2001 03:00:01 +0000 |
| Subject: | note 10380 deleted from Comparison Operators by jimw | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9616@lists.php.net to get a copy of this message | ||
bug in the (otherwise very cool) ternary condition operator; the results seem to overwrite the
line-based output buffer.. i.e.
echo "You have had a fat butt for $x day". ($days>1) ? "s" : ""
."n";
this should put the "s" on days if need be, but instead, the entire echo statement outputs
either nothing or "s"... it forgets about all the stuff to echo before the ternary
operator...