I want to extract an array_diff comparing the structure and the keys of two multidimensional arrays.
Example:
<?php
$array_1 =
['abc'=> '',
'def'=> ['', '', [
'ijk' => '']
]
];
$array_2 =
['abc'=> '',
'def'=> ['', '', [
'ijK' => '']
]
];
I would like an array diff of this telling me that the key 'ijK' is not the same name that 'ijk' (or not present on the first array).
only the keys are important to me..the values are always empty.