I'm struggling to explain what I want to do here so apologies if I confuse you.. I'm just as confused myself
I have an array like so:
$foo = array(
array('value' => 5680, 'text' => 'Red'),
array('value' => 7899, 'text' => 'Green'),
array('value' => 9968, 'text' => 'Blue'),
array('value' => 4038, 'text' => 'Yellow'),
)
I want to check if the array contains the value e.g. 7899 and also get the text linked to that value "Green" in the example above.