Re: <?= and <%= both work, why not <?php=
| From: | Rasmus Lerdorf | Date: | Sat, 27 Apr 2002 00:18:03 +0000 |
| Subject: | Re: <?= and <%= both work, why not <?php= | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83406@lists.php.net to get a copy of this message | ||
> > <?php if ($foo > $bar)
>
> Erm, but that won't work :)
Obviously.
> >But sheez... That's just way too ugly, you can work around it and there
> >are other examples out there of people breaking this rule. Doing <?php= is
> >a much more flagrant violation in my opinion.
>
> Look, I'm not trying to argue in favour of <?php= or anything. I'm just
> going back to this discussion from 5 years ago, and pointing out that I
> still don't quite understand why we cared about XML compliance, when a
> language such as PHP cannot be XML compliant no matter what :)
It looks like we can. I was assuming the SGML characteristics for XML and
it looks like I was wrong. A '>' is ok inside the <?php ?> tags.
-R