Suppose you need to check value from two dimension array then normally in_array not work so you can check this value using this code which check value from two dimension array. this is simple code
<?php Array ( [0] => Array ( [id] => 9545 [store] => Some Store Name )[1] => Array ( [id] => 9544 [store] => Some Store Name ); // this array $id = 9545; this is check value $store = 'Some Store Name'; this is check value if (in_array(array('id' => $id, 'store' => $store), $array)) { echo "Found!"; } ?>
then output is : Found.
if you face any problem then inform me, i will try to help you