should we have a dev php using linux sub forum ?
to simply confirm that a word exists but you don't want to do anything with it ; for instance maybe you want to run through a text string that was submitted POST from a contact form to check for spam then you can also use :
strpos($inputString, $keyword)
where $keyword is an array of key words
and something like :
foreach($this->keywords as $keyword)
{
if (strpos($inputString, $keyword) !== false) { do something }
}