Q. What will be the output?
Code:$fn = function($x) { return $x * 2; };
echo $fn(3);
β
Correct Answer: (A)
6
Explanation: Anonymous function multiplies input by 2.