Re: <?= and <%= both work, why not <?php=
| From: | Sander Steffann | Date: | Fri, 26 Apr 2002 22:10:26 +0000 |
| Subject: | Re: <?= and <%= both work, why not <?php= | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83398@lists.php.net to get a copy of this message | ||
Hi,
> From: http://www.w3.org/TR/2000/REC-xml-20001006#sec-pi
>
> [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))?
> '?>'
> [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm')
> ('L' | 'l'))
>
> [3] S ::= (#x20 | #x9 | #xD | #xA)+
> [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
[#x10000-#x10FFFF]
>
> Meaning that between <?php and ?> everytning is allowed but '?>'.
Nice to know! Not that it matters to the <?php= discussion, because if
someone doesn't want to make a valid XML document he has plenty ways of
doing that...
About the <?php= thing: IMHO it can be put in, because the people who don't
like it just won't use it... I understand that others want to keep the
language clean, which is very important too! I probably wouldn't use it, but
I have nothing against it either.
But: very nice to know the XML thing. Thanks!
Sander.