Date: 08/30/01
- Next message: Paul McGee: "[PHP] Date formatting in PHP 3.0"
- Previous message: Zhu George-CZZ010: "[PHP] Header() function and redirect"
- In reply to: * R&zE:: "Re: [PHP] If statement within a variable?"
- Next in thread: Franklin van Velthuizen: "Re: [PHP] If statement within a variable?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
<Original message>
From: * R&zE: <renze <email protected>>
Date: Thu, Aug 30, 2001 at 06:05:57PM +0200
Message-ID: <20010830180557.B15130 <email protected>>
Subject: Re: [PHP] If statement within a variable?
> This is it:
>
> $var = "Hello".($var2 = 1 ? "Mr. Bean" : "New Comer")."To The Coffee House.";
</Original message>
<Reply>
Oops... copying your code I also copied an error. It should be
"$var2 == 1" io "$var2 = 1". So your check will be:
$var = "Hello".($var2 == 1 ? "Mr. Bean" : "New Comer")."To The Coffee House.";
</Reply>
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze <email protected> -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Paul McGee: "[PHP] Date formatting in PHP 3.0"
- Previous message: Zhu George-CZZ010: "[PHP] Header() function and redirect"
- In reply to: * R&zE:: "Re: [PHP] If statement within a variable?"
- Next in thread: Franklin van Velthuizen: "Re: [PHP] If statement within a variable?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

