I have different multidimensional arrays with different keys and values:
$array_1 = array('cars' => array('audi' => array('a3' => array('one', 'two', 'three'), 'a5' => array('five', 'six', 'seven')), 'mercedes' => array('type_1' => array('submodel' => array('whatever'))), 'other_cat' => array('different_things')));
then I would like to unset a specific key, for example:
unset($array_1['cars']['audi']['a5']);
Now I like to "split it up", to have the key variable.
$to_unset = ['cars']['audi']['a5'];
How can I unset that specific (variable!) key?
Aäron