I have an array that looks like this:
Array (
[0] => Array (
[host] => google.com
[type] => NS
[target] => ns2.google.com
[class] => IN [ttl] => 112756
)
[1] => Array (
[host] => google.com
[type] => NS
[target] => ns1.google.com
[class] => IN
[ttl] => 112756
)
[2] => Array (
[host] => google.com
[type] => NS
[target] => ns3.google.com
[class] => IN
[ttl] => 112756
)
[3] => Array (
[host] => google.com
[type] => NS
[target] => ns4.google.com
[class] => IN
[ttl] => 112756
)
)
I would like to search for the pattern *google*. Not sure what function to use to do this. in_array doesn't seem to like regex or searching multiple arrays.