preg_grep()
The preg_grep() function returns the elements of an array that match a pattern. This is useful for filtering arrays based on regular expressions.