preg_grep « String « PHP






1.preg_grep
2.preg_grep() function searches all elements of input_array, returning all elements matching the regexp pattern.
3.Using preg_grep()
4.Quickly finding lines that match a pattern