Matching a partial string
| From: | Ron Piggott | Date: | Sat, 15 Nov 2014 03:34:53 +0000 |
| Subject: | Matching a partial string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-324041@lists.php.net to get a copy of this message | ||
Is there a way (similar to in_array) to match a partial string?
Haystack:
$_SERVER['REQUEST_URI']
Needles:
/prayers-for-today/%
/one-year-Bible-reading-guide/%
/past-issues/%
where % matches the dynamic remainder of the string
Thank you.