Re: true ? echo "y" : echo "n"
| From: | Rasmus Lerdorf | Date: | Mon, 26 May 2003 14:24:27 +0000 |
| Subject: | Re: true ? echo "y" : echo "n" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148985@lists.php.net to get a copy of this message | ||
echo true ? "y":"n";
On Mon, 26 May 2003, Sam wrote:
>
>
> Why doesn't this work?
>
> true ? echo "y" : echo "n" ;
>
> So it's like this:
> if(true) { echo "y"; }else{ echo "n"; }
>
>
>
>