note 40097 deleted from language.basic-syntax by sobak
| From: | sobak@php.net | Date: | Fri, 25 Nov 2016 08:07:58 +0000 |
| Subject: | note 40097 deleted from language.basic-syntax by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207678@lists.php.net to get a copy of this message | ||
Note Submitter: Anon
----
Yet another way of adding the XML processing instruction is to use:
<?php echo '<?xml version="1.0" ?'.'>' ?>
Because the ? and > are separated, the parser will not terminate before it is supposed to.
As a side note, the W3C's parser seems to recognise this method (assuming it even checks for
the PI).