Re: [PHP] Is this kind of code safe?

2001-04-17 Thread Plutarck
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

RE: [PHP] Is this kind of code safe?

2001-04-17 Thread Greig, Euan
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

RE: [PHP] Is this kind of code safe?

2001-04-17 Thread Jason Murray
> $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.

[PHP] Is this kind of code safe?

2001-04-17 Thread Greig, Euan
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