check string pos

PHP
strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : int
Source

Also in PHP: