Re: strpos() act funny when searching for "]]>"....
| From: | Scott Fletcher | Date: | Fri, 21 Nov 2003 16:07:10 +0000 |
| Subject: | Re: strpos() act funny when searching for "]]>".... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170580@lists.php.net to get a copy of this message | ||
I thought about that also, so I took your suggestion and tried it. Still
doens't work... I tried those...
"\]]>";
"\]\]>";
Scott F.
"Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message
news:C8F323573C030A448F3E5A2B6FE2070B01AFAB82@nemesis.niicommunications.com...
[snip]
strpos() is acting a little bit funny. When I do this...
--snip--
$a = strpos($data,"]]>");
--snip--
Problem is there are "]]>" characters in the $data string and it just
doesn't see it. Anyone know why and what is the workaround to it?
[/snip]
Does it need to be escaped? *shootin' from da' hip*
$a = strpos($data,"\]]>");