i have two arrays in php, one is a list of files and the other has uniqueid() => ("file", uid, meetings)
array 1:
$madeFromFilesArray = array(
"index",
"contact",
"reportA",
"reportB",
);
array 2:
$LoadedArray = array(
5156e1b122c2b => array("index", uid, meetings),
5156e1b122c2c => array("about", uid, meetings),
5156e1b122c2d => array("contact", uid, meetings),
5156e1b122c2e => array("reportB", uid, meetings),
);
array 1 is the updated one. i need to sync array 2 with 1. for example delete "about" from array 2 because it is not in 1 and add reportA to array 2 because it is in 1 and not in 2. so the final array is:
result array3:
$LoadedArray = array(
5156e1b122c2b => array("index", uid, meetings),
5156e1b122c2d => array("contact", uid, meetings),
5156e1b122c2e => array("reportB", uid, meetings),
5156e1b122c2f => array("reportA", uid, meetings),
);