There is an array:

$array['aKey']=array('a','b','c'); $array['bKey']=array('d','e','f'); $array['cKey']=array('g','h','i'); ... 

How to get a primary key without brute force for a value?

For example: find the bKey bKey if I have the value f .

  • there is an array ... how to get the primary key without searching for the value? - Max Newbee
  • one
    without sorting it won't work - sercxjo
  • It is necessary to build another 1 hash, only by the values ​​(of the following type ['a'=>'aKey','b'=>'aKey', ..., 'i'=>'cKey'] ). - Arnial

0