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