<?php
$mystring = 'vabcsa';
$findme = 'a';
$pos = strpos($mystring, $findme,'-1');
if ($pos !== false) {
echo "The string '$findme' was found in the string '$mystring'";
echo " and exists at position $pos";
} else {
echo "The string '$findme' was not found in the string '$mystring'";
}
Warning: strpos(): Offset not contained in string. in /in/daTqL on line 4
The string 'a' was not found in the string 'vabcsa'
Output for 4.3.0 - 4.3.1
Warning: strpos() [http://www.php.net/function.strpos]: Offset not contained in string. in /in/daTqL on line 4
The string 'a' was not found in the string 'vabcsa'