Re: strpos() act funny when searching for "]]>"....
| From: | Scott Fletcher | Date: | Fri, 21 Nov 2003 16:33:35 +0000 |
| Subject: | Re: strpos() act funny when searching for "]]>".... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170589@lists.php.net to get a copy of this message | ||
Yea, it's a ">" and not a ">".. It is pure XML tags....
Found the problem now, so no problem now. See other branch of this posting
of a workaround to the problem I did...
Thanks,
Scott
"Sophie Mattoug" <sophie@sitadelle.com> wrote in message
news:3FBE3AC1.5060201@sitadelle.com...
> Just a stupid idea : are you sure you have '>' in your text and not
> '>'
?
>
> Scott Fletcher wrote:
>
> >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,"\]]>");
> >
> >
> >