- array_keys: documentation ( source)
<?php
$test = array(
array('a' => 'testA',
'b' => 'testB'),
array('a' =>'testC',
'b' => 'testD')
);
$key = array_keys($test, array('a' => 'testA', 'b' => 'testB'));
echo $test[$key[0]];