Re: Problem with "<?xml ....>" inside the PHP code, due to "?"

From: Date: Thu, 01 Aug 2002 16:30:05 +0000
Subject: Re: Problem with "<?xml ....>" inside the PHP code, due to "?"
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-110701@lists.php.net to get a copy of this message
heres how i do it $xml .= "<?xml version=\"1.0\"?>\n"; "Tom Rogers" <trogers@kwikin.com> wrote in message news:11630025.20020802023727@kwikin.com... > Hi, > > Friday, August 2, 2002, 2:03:18 AM, you wrote: > SF> Anyone know the workaround with the situation here? Here is the sample > SF> script. The problem is I include the XML tag into the PHP variable and it > SF> messed up everything. It all had to do with "?" here since PHP use it also. > > SF> --clip-- > SF> <?php > SF> $XML = "<?xml version='1.0' encoding='UTF-8'?><Product>Apple</Product>"; > SF> echo $XML; > ?>> > > SF> Thanks, > SF> FletchSOD > > Another variation with single quotes :) > > echo '<?xml version="1.0"?>'; > > -- > regards, > Tom >

« previous php.general (#110701) next »