I need to find out if a string exists within an array value, but isn't necessarily the actual array value.
$array = array(
0 => 'blue',
1 => 'red',
2 => 'green',
3 => 'red'
);
$key = xxxxxx('gr', $array); // $key = 2;
Is there a built in way to do this with PHP