Q. What will be the output?
Code:$a = 1; $b = $a; $b++; echo $a;
β
Correct Answer: (A)
1
Explanation: Assignment is by value, so $a is unaffected.
$a = 1; $b = $a; $b++; echo $a;