strpos contains php code example
Example 1: php find if string contains
if (strpos($string, 'substring') !== false) {
// do stuff
}
Example 2: strpos
strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : int
if (strpos($string, 'substring') !== false) {
// do stuff
}
strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : int