Mailinglisten-Archive |
Zitat von Michael Lechner <michi_(at)_abi2001fag.de>:
> ich will eine Variable auf 1 setzen, falls eine html-Datei die ich
> mit fopen geöffnet habe, einen bestimme Buchstabenfolge enthält.
> Wie mach cih das ???
hallo!
ganz simpel, in $text steht dein string. In dem fall würde 1
zurückgegeben werden, wenn foobar im string ist.
$var = preg_match("=foobar=", $text);
gruss
daniel prior
--
DPITS - Internetsolutions & Webhosting
-------------------------------------------------
This mail sent through DPITS IMP: http://dpits.de/
php::bar PHP Wiki - Listenarchive