if your intent is to imple append one array onto the other
you should simply use the + opperator
im not sure if thats what you intended or not.
array_merge should not be used to append arrays to each other, dispite the confusing explaination of the function
$result = $array_1 + $array_2;
[man]print_r/man is the simplist way to see whats in an array
array merge clobbers the first array with values from the second...
and it works for me, so im assuming there is a flaw in your code logic somewhere. but how you explain
confirm that both arrays (root and user) contained various values and they are populated with various differings keys and values.
shows that you have a good understanding of the problem and what the correct output should be