When I use
array_merge() with associative arrays I get what I want, but when I use them with numerical key arrays the keys get changed.
+ the keys are preserved but it doesn't work with associative arrays.
I don't understand how this works, can anybody explain it to me?
Because both arrays are numerically-indexed, only the values in the first array will be used.
array_merge()has slightly different behavior: