Julian L. answered 11/06/19
Tutor
New to Wyzant
Industry Software Engineer
Arrays are already assigned by copy. Just assign the array to a variable.
$array2 = $array1;
If you want them to reference each other (So the change in one array will affect the other) use the & character before the variable.
so $array2 = &$array1;