php if string exist in string code example Example: php find if string contains if (strpos($string, 'substring') !== false) { // do stuff }