pineco.de
Checking a RegEx Pattern Against an Array of Strings - Pine
Checking multiple strings against the same pattern is a common task in development. Usually, we use multiple preg_match for checking values, however, PHP provides a nice function that allows us to provide an array to the checker. The “Old” Way Let’s say we need to check if the request’s URI contains a specific keyword. Now, …