I have an array as follows
array(2) { [\"operator\"] => array(2) { [\"qty\"] => int(2) [\"id\"] => int(251) } [\"accessory209\"] =>
This function is useful in_array(211, $array['accessory']); It verifies the whole specified array to see if your value exists in there and returns true.
in_array(211, $array['accessory']);
in_array