I'm having a bit of trouble accessing data within an array that looks like the following:
array (
0 => array ( 'value' => '46', 'label' => 'Brand A', ),
1 => array ( 'value' => '45', 'label' => 'Brand B', ),
2 => array ( 'value' => '570', 'label' => 'Brand C', ),
);
Essentially I want to be able to return the contents of the label when given the value (e.g. 45 returns Brand B), but am not sure how to do this within these levels.
Do I need to break this array down into smaller chunks through a loop of some sort to access this data?
Thanks