check character present in sentence in phph

PHP
if (strpos($string, 'substring') !== false) {
	// do stuff 
}
Source

Also in PHP: