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
Taking a guess at what you would like here:
function findTextByValueInArray($fooArray, $searchValue){ foreach ($fooArray as $bar ) { if ($bar['value'] == $searchValue) { return $bar['text']; } } }