RE: [PHP] strpos() act funny when searching for "]]>"....

From: Date: Fri, 21 Nov 2003 15:49:35 +0000
Subject: RE: [PHP] strpos() act funny when searching for "]]>"....
Groups: php.general 
Request: Send a blank email to php-general+get-170576@lists.php.net to get a copy of this message
[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,"\]]>");

« previous php.general (#170576) next »