Re: Problem with "<?xml ....>" inside the PHP code, due to "?"
| From: | Danny Shepherd | Date: | Thu, 01 Aug 2002 16:05:38 +0000 |
| Subject: | Re: Problem with "<?xml ....>" inside the PHP code, due to "?" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110692@lists.php.net to get a copy of this message | ||
Try:
<?php
$XML = "<"."?xml version='1.0'
encoding='UTF-8'?><Product>Apple</Product>";
echo $XML;
?>
HTH
Danny.
----- Original Message -----
From: "Scott Fletcher" <scott@abcoa.com>
To: <php-general@lists.php.net>
Sent: Thursday, August 01, 2002 5:03 PM
Subject: [PHP] Problem with "<?xml ....>" inside the PHP code, due to "?"
> 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
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>