I've a PHP multidimensional array like:
array(
[0] => array("code"=>code1, "value"=>val1, "operation"=>Add),
[1] => array("code"=>code2, "value"=>val2, "operation"=>Remove),
[2] => array("code"=>code3, "value"=>val3, "operation"=>Edit)
)
If I know code and value, how can I get the operation array index value corresponding to that entry. Eg: If I pass code1 and val1, then it should return the value Add. I can use foreach(), but I'm looking for some other faster and efficient way to get it.
Can anyone help me? Thanks in advance.
code,valueoroperationpossible in the array?