strpos (or stripos if you need case-insensitivy) will return -1 if the string wasn't found, or the starting position if it wasn't found
For example, strpos("this is an example","x") will return 12, while
strpos("this is an example","q") will return -1
It works for longer phrases or multiple words as well as single characters