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
For PHP >= 5.5.0 it is easier with array_column:
array_column
echo array_column($foo, 'text', 'value')[7899];
Or to be repeatable without using array_column each time:
$bar = array_column($foo, 'text', 'value'); echo isset($bar[7899]) ? $bar[7899] : 'NOT FOUND!';