I have this code and for some reason strpos is not returning the positition of the title and /title.
$haystack = "<title> PHP Coding </title>";
$needle = "<title>";
//1. print the position of the $needle in $haystack
echo strpos( $haystack, $needle);
$newneedle = "</title>";
//2. print the position of $newneedle in $haytack
echo strpos( $haystack, $needle);