I got two arrays and want to check if the second array is in the first. The arrays:
First Array:
array(1) {
["group"]=>
array(3) {
["create"]=>
bool(true)
["edit"]=>
bool(true)
["delete"]=>
bool(true)
}
}
Second Array
array(1) {
["group"]=>
array(1) {
["create"]=>
bool(true)
}
}
The depth can be different
in_array
doesn't work -> array to conversion error and it doesn't mind the assoc allocation
I tried to search and tested a lot but doesn't found what I need. I Hope someone of you can help me!