Re: true ? echo "y" : echo "n"
| From: | Marek Kilimajer | Date: | Mon, 26 May 2003 14:26:48 +0000 |
| Subject: | Re: true ? echo "y" : echo "n" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148987@lists.php.net to get a copy of this message | ||
It returns the value returned by echo, try
echo true ? "y" : "n";
Sam wrote:
Why doesn't this work? true ? echo "y" : echo "n" ; So it's like this: if(true) { echo "y"; }else{ echo "n"; }