I have to arrays that i want to join together without iterating them.
Backgroundinfo:
$Arr1 is an array of all Groups that a User is in.
$Arr2 is an array of all Contentpages associated to the Groups as the array key.
My aim is to get an array with all contentpages that the user is allowed to see
$Arr1 = array("Group1","Group3","Group5");
$Arr2["Group1"] = array("Content1","Content2");
$Arr2["Group2"] = array("Content5");
$Arr2["Group3"] = array("Content3");
My Result should be an array with all "Content" Elements:
array("Content1","Content2","Content3");
Is there some trick with array_fill_keys or array_merge to avoid iterating?