I've been searching and haven't found an answer yet to my question.
Say I want to create a menu out of three or more arrays, but I don't what elements will those arrays have.
I have something like this:
$arr1 = array(
'design' => 'Link 1'
);
$arr2 = array(
'development' => 'Link 2'
);
$arr3 = array(
'design' => 'Link 3',
'seo' => 'Link 4'
);
What can I do to turn those three arrays into this:
$final_array = array(
'development' => 'Link 2',
'seo' => 'Link 4',
'design' => array(
'0' => 'Link 1',
'1' => 'Link 3'
),
);