I have two arrays like this:
$arr1 = array('/^under.*/','/^develop.*/','/^repons*/');
$arr2 = array('understand','underconstruction','developer','develope','hide','here','some')
I want to match the two arrays and return an array of words starting with the patterns in $arr1
.
How do I do this in php?