Re: <?= and <%= both work, why not <?php=

From: Date: Fri, 26 Apr 2002 17:39:22 +0000
Subject: Re: <?= and <%= both work, why not <?php=
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-83384@lists.php.net to get a copy of this message
At 21:07 26/04/2002, Sterling Hughes wrote:
The whole point of the <?php tag is to allow people to embed commands in XML documents. When short tags are disabled, commands such as <% echo 'HELLO'; %> don't work. If you allow <?php=?> syntax, it is not valid XML, which negates the point of having <?php in the first place.
He was wrong about the 2nd example, but I'm pretty sure about his first: <?php if ($foo > $bar) ... ?> Is this valid XML? [I'm not taking sides on whether <?php= should be supported or not] Zeev

« previous php.dev (#83384) next »