Re: <?= and <%= both work, why not <?php=
| From: | Zeev Suraski | Date: | Sat, 27 Apr 2002 00:11:07 +0000 |
| Subject: | Re: <?= and <%= both work, why not <?php= | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83405@lists.php.net to get a copy of this message | ||
At 20:52 26/04/2002, Rasmus Lerdorf wrote:
<?php if ($foo > $bar) ... ?> Is this valid XML? No, this is technically invalid XML. You would have to write it as: <?php if ($foo > $bar)Erm, but that won't work :)
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 :) Zeev