Can i use array_key_exists to check for a given key into a bidimensional array ? or there is a better way to check for ['payment']['id']
key ?
I try : array_key_exists('payment.id',$data)
and array_key_exists('product.id',$data)
But can not see it working as expected.
Eg. array_key_exists(payment.id,$data), where i have an array :
array(
[payment] array( [id]=>123 [date]=>2016-01-20 )
[product] array( [id]=>456 [qtty]=>3 )
)