Re: <?= and <%= both work, why not <?php=
| From: | J Smith | Date: | Fri, 26 Apr 2002 19:32:09 +0000 |
| Subject: | Re: <?= and <%= both work, why not <?php= | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83393@lists.php.net to get a copy of this message | ||
Are you positive about that? I would have assumed so, too, but it passes
both the Sablotron and Xerces XML processors without so much as a warning.
J
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)
>
> 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.
>
> -Rasmus