sage-
> From: Jason Murray [mailto:[EMAIL PROTECTED]]
> Sent: 17 April 2001 12:38
> To: 'Greig, Euan'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Is this kind of code safe?
>
>
> > > $test="b";
> > if ($test=="a"):
> > ?>
&g
Thanks for that Jason (and so quick!). I agree it's ugly, but I can see it being
useful occasionally.
Euan
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: 17 April 2001 12:38
To: 'Greig, Euan'; [EMAIL PROTECTED]
Subject: RE: [PHP] Is this ki
> $test="b";
> if ($test=="a"):
> ?>
>value is a
> else:
> ?>
>value is not a
> endif;
> ?>
>
> It seems to work, ie it outputs different text depending on
> the value of $test. But is it safe, can I rely on this
> behaviour?
Yes can rely on it, but I just think it's somewhat ugly.
I was playing around with various ways of doing conditional output of text, and I
tried the following.
value is a
value is not a
It seems to work, ie it outputs different text depending on the value of $test. But is
it safe, can I rely on this behaviour? Maybe I just missed something
4 matches
Mail list logo