PHP – Search in an Array for Values Matching a Pattern – Regex, Wildcard

12

I need to use my Regular Expression Pattern and find all the array values that match the regex pattern. The PHP function preg_grep handles this beautifully. It accepts the Regex pattern and the array to search for as its parameters.

Read this post on ask.amoeba.co.in


Anees Madathil

blogs from Bangalore

Recommended for you