Philipp Hasenfratz: if abfrage: prüfen ob eine bestimmte zeichenkette vorkommt

Beitrag lesen

Halihallo Janosch

habs jetzt so, mag er aber gar nicht...

Fehlermeldung? - PHP-Version?

was mach ich denn verkehrt?

s. oben.

@andi: aus http://www.php.net/preg_match
Tipp: Do not use preg_match() if you only want to check if one
string is contained in another string. Use strpos() or strstr()
instead as they will be faster.

Viele Grüsse

Philipp