check if string is not in other string php

PHP
$mystring = 'abc';
$findme   = 'a';
$pos = strpos($mystring, $findme);
Source

Also in PHP: