Question #10

Author: admin
tags: PHP  
$arr1 = [1, 5, 10];
$arr2 = $arr1;
$arr2[1] = 7;

echo $arr1[1]; // ??
What will be output?
1
5
7
10
In PHP, the assignment operator copies an array by value, not by reference.
Rate the difficulty of the question:
easyhard