Re: true ? echo "y" : echo "n"

From: Date: Mon, 26 May 2003 14:26:16 +0000
Subject: Re: true ? echo "y" : echo "n"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148986@lists.php.net to get a copy of this message
Why doesn't this work? true ? echo "y" : echo "n" ;
I think you want to do: echo true ? 'y' : 'n'; Larry

« previous php.general (#148986) next »