Problem with "<?xml ....>" inside the PHP code, due to "?"
| From: | Scott Fletcher | Date: | Thu, 01 Aug 2002 16:03:18 +0000 |
| Subject: | Problem with "<?xml ....>" inside the PHP code, due to "?" | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-110691@lists.php.net to get a copy of this message | ||
Anyone know the workaround with the situation here? Here is the sample
script. The problem is I include the XML tag into the PHP variable and it
messed up everything. It all had to do with "?" here since PHP use it also.
--clip--
<?php
$XML = "<?xml version='1.0'
encoding='UTF-8'?><Product>Apple</Product>";
echo $XML;
?>
Thanks,
FletchSOD