RE: [PHP] Problem with "<?xml ....>" inside the PHP code, due to "?"
| From: | Mark Middleton | Date: | Thu, 01 Aug 2002 16:11:49 +0000 |
| Subject: | RE: [PHP] Problem with "<?xml ....>" inside the PHP code, due to "?" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110695@lists.php.net to get a copy of this message | ||
> <?php
> $XML = "<?xml version='1.0'
> encoding='UTF-8'?><Product>Apple</Product>";
> echo $XML;
> ?>
>
Not sure if this is the best way, but it worked for me:
$XML = "<"."?xml version='1.0'
encoding='UTF-8'?"."><Product>Apple</Product>";
Hope this helps,
Mark
::::::::::::::::::::
Mark Middleton
Whirled Web