Which of the given statements is correct about the following PHP 7.1 code?
function example()
{
static $cnt = 0;
$cnt++;
echo $cnt;
if ($cnt < 5) {
example();
}
$cnt--;
}
?>
Correct Answer:
The code will compile successfully but will not print any output.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP 5 MCQ Questions