note 26909 added to function.preg-match
| From: | kabatak at rack1 dot php dot net | Date: | Sun, 17 Nov 2002 12:06:05 +0000 |
| Subject: | note 26909 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39591@lists.php.net to get a copy of this message | ||
Search a word from a web page
$page = implode("\n", file("URL"));
if (preg_match ("/word/i", "$page"))
{ print "A match was found."; }
else { print "A match was not found."; }
--
http://www.php.net/manual/en/function.preg-match.php
http://master.php.net/manage/user-notes.php?action=edit+26909
http://master.php.net/manage/user-notes.php?action=delete+26909
http://master.php.net/manage/user-notes.php?action=reject+26909