I've got a slight problem with searching a needle with strpos.
My problem is I want to search for a needle with quotes(") in it.
$page = @file_get_contents("full-story.htm");
//Looking for position of: Victor said "There won't be any new changes made"
$needle = "Victor said "There won't be any new changes made"";
$point = strpos($page,$needle);
if($point === false)
echo "ERROR";
else
echo $point;
As you can see the quotes are conflicting with the enclosing quotes. I've tried escaping with \ but I get ERROR meaning the slash could be messing up the needle.
Any suggestions? :bemused: