note 17505 deleted from language.basic-syntax by sobak
| From: | sobak@php.net | Date: | Tue, 22 Nov 2016 08:24:16 +0000 |
| Subject: | note 17505 deleted from language.basic-syntax by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207480@lists.php.net to get a copy of this message | ||
Note Submitter: mrtidy at mail dot com
----
[Ed Note:
This is because of short_tags, <?xml turns php parsing on, because of the <?.
--irc-html@php.net]
I am moving my site to XHTML and I ran into trouble with the <?xml ?> interfering with the
<?php ?> method of escaping for HTML. A quick check of the mailing list confirmed that the
current preferred method to cleanly output the <?xml ?> line is to echo it:<br>
<?php echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
?>