What is the best way to add two associative arrays such that duplicate values are not over written : +
or array_ merge
?
I was pretty sure that using +
operator I can add two associative arrays such that duplicate values are not over written but this Answer is saying something different and so am not sure if it is really true.
I would really appreciate if you can share some lights on how can we add two associative arrays such that duplicate values are not over written.
Appreciate your time and responses.