strpos php

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

Ищет позицию первого вхождения подстроки needle в строку haystack.

http://php.net/manual/ru/function.strpos...