strpos method php code example
Example 1: php string contains
$mystring = 'abc';
$findme = 'a';
$pos = strpos($mystring, $findme);
Example 2: strpos
strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : int
$mystring = 'abc';
$findme = 'a';
$pos = strpos($mystring, $findme);
strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : int