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