Pine: Checking a RegEx Pattern Against an Array of Strings

  • You are here: Free PHP » Uncategorized » Pine: Checking a RegEx Pattern Against an Array of Strings

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 req...

Powered by Gewgley