Re: strpos() act funny when searching for "]]>"....
| From: | Sophie Mattoug | Date: | Fri, 21 Nov 2003 16:18:09 +0000 |
| Subject: | Re: strpos() act funny when searching for "]]>".... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170587@lists.php.net to get a copy of this message | ||
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,"\]]>");