strpos(), preg_match(), etc etc

Basterebbe aprire il manuale e cercare.