I have two arrays, one of which is a "section" of the other. For example:
$array = array('file_name1'=>'date1',
'file_name2'=>'date2',
'file_name3'=> array('file_name3.1'=>'date3.1',
'file_name3.2'=>'date3.2'),
'file_name4'=>'date4');
$array_part = array('file_name3'=>array('file_name3.2'=>'date3.2.2'));
In my script, the first array holds a directory structure with the final values being the last-modified date. When I find a change, I want to apply the date value from the second array into the original array. Both arrays are dynamically created, so I don't know the depth of either array. How can I apply this value to the original array?