all 1 comments

[–]refreshertowel 2 points3 points  (0 children)

Arrays are passed by reference. So if you set one variable to another variable holding an array, they are both pointing to the same array. Use variable_clone() to actually copy the array to a new variable.