Hallo!
ich weis leider nicht wie die funktion in php heißt, nur dass es sie gibt.
Wenn
http://www.php3.de/manual/de/control-structures.php#control-structures.if
$string "text" enthält
http://www.php3.de/manual/de/function.strstr.php
echo "enthält text"
http://www.php3.de/manual/de/function.echo.php
Oder suchtest Du was anderes?
Grüße
Andreas