New course! Every coder should learn Generative AI!
Try a free lesson+ 2
what is output of this code ?
$x=$y=5 function fun{ $x=$y=3 global x; echo $x; echo $y; }
2 Answers
+ 3
5 and 3.
+ 2
It won't work as written.
$x=$y=5 function fun{ $x=$y=3 global x; echo $x; echo $y; }