I have two arrays:
$array1 = [
'user_id' => '1234567890',
'customer_id' => [
'889599494514048876' => [admin => true],
'006994743818411627' => [admin => false],
'259960192293339276' => [admin => false]
]
];
$array2 = [
'customer_id' => [
'259960192293339276' => [admin => false]
]
];
I want to check if array2 exists in array1.
"Ideally" the solution would be dynamic, so no matter how nested or different the array structure is, it would still work. Any solution or ideas are still much appreciated though, as I'm quite stuck.
I've looked at array_intersect and array_uintersect, though I haven't gotten them to work like I would have wanted.