Re: Matching a partial string

From: Date: Sat, 15 Nov 2014 04:32:51 +0000
Subject: Re: Matching a partial string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-324042@lists.php.net to get a copy of this message
On 11/14/2014 10:34 PM, Ron Piggott wrote:
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. Look up the stripos function


« previous php.general (#324042) next »