I have following array :
[2] => Array
(
[main_type] => amount
[main_value] => amount
)
[3] => Array
(
[main_type] => amount
[main_value] => code
)
[4] => Array
(
[main_type] => hello
[main_value] => amount
)
Now I want to find that if main_type = hello and main_value = amount is exists or not in entire array. How can i find through entire array.
I have tried using array_search but with that i am able to search in one column but not for more than 1.