note 23697 added to function.preg-match
| From: | david at tvis dot co dot uk | Date: | Thu, 25 Jul 2002 11:03:41 +0000 |
| Subject: | note 23697 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33540@lists.php.net to get a copy of this message | ||
preg_match supports OR searches where | (pipe) is the OR symbol. eg
Search for red or green in $srvr
if (preg_match("/green|red/i",$srvr)) {..}
--
http://www.php.net/manual/en/function.preg-match.php
http://master.php.net/manage/user-notes.php?action=edit+23697
http://master.php.net/manage/user-notes.php?action=delete+23697
http://master.php.net/manage/user-notes.php?action=reject+23697