Q. What will be the output of the following PHP code?
Code:
<?php
function Increment(){
static $num = 0;
echo "$num";
$num++;
}
Increment();
Increment();
Increment();
?>
β
Correct Answer: (D)
012