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 kind of code safe?
> <?php
> $test="b";
> if ($test=="a"):
> ?>
> value is a
> <?php
> else:
> ?>
> value is not a
> <?php
> 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. If I'm combing
through a file looking for outputs, stepping through multiple ?> and <?php
tags is very annoying.
Jason
**************************************************************************
Any opinions expressed in this email are those of the individual and
not necessarily the Company. This email and any files transmitted with
it, including replies and forwarded copies (which may contain alterations)
subsequently transmitted from the Company, are confidential and solely for
the use of the intended recipient. If you are not the intended recipient
or the person responsible for delivering to the intended recipient, be
advised that you have received this email in error and that any use is
strictly prohibited.
**************************************************************************
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]