I have an array that is structured as such:
$data = array( \"abc\"=>array( \"label\" => \"abc\", \"value\" => \"def\",
If you are using PHP 5.5 and are viewing this question in 2015, this might be a more simple answer:
$elements= array_column($array, 1); //Where 1 is the name of the column or the index $foundElements = preg_grep("/regex/i", $elements);