Re: <?php= ?> sytanx again

From: Date: Fri, 09 Nov 2001 05:15:43 +0000
Subject: Re: <?php= ?> sytanx again
References: 1 2 3 4 5 6 7  Groups: php.dev 
Request: Send a blank email to php-dev+get-69858@lists.php.net to get a copy of this message
Quoting Edin Kadribasic <edink@proventum.net>:

> Combine that with incompatibility of PHP's short open tag with XML, and the 
> reason for having <?php= becomes clearer.

As Rasmus is probably tired of pointing out, this isn't much of an argument. 
This:

if ($i < 4) {
    ...

is incompatible with XML (it'd have to be if ($i &lt; 4) ...)

I find it unfortunate that there's a feature available with short tags on that 
isn't available with them off, because that means it's a feature that you can't 
use if you want to write code that'll work with anyone's php installation. But 
that's about it - I end up on the fence.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"What was and what may be, lie, like children whose faces we cannot see, in the
arms of silence. All we ever have is here, now." - Ursula K. Le Guin


Thread (57 messages)

« previous php.dev (#69858) next »