Re: escaping ?>

From: Date: Fri, 08 Feb 2002 23:05:07 +0000
Subject: Re: escaping ?>
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-84066@lists.php.net to get a copy of this message
Hi, try this: str_replace("<?xml version=\"1.0\"?>".... Jeff At 03:45 PM 2/8/2002 -0600, Steven Jarvis wrote:
I'm trying to do some string replaces on XML files to import them into a prprietary db that doesn't understand XML. I need to strip the XML tags out of the file. However, when I use this line: $contents = str_replace('<?xml version="1.0"?>', '', $contents); The ?> in the string ends my php block. I know there's an easy answer to this, and I'm probably just suffering from Friday afternoon burnout, but can someone let me know how to escape those so that I can search for them in the string? thanks, Steven -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#84066) next »