I have two arrays, one of which is the "section" of the other. For instance:
$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 contains a directory structure whose final values ββare the date of the last change. When I find the change, I want to apply the date value from the second array to the original array. Both arrays are dynamically created, so I do not know the depth of any array. How can I apply this value to the original array?
source share