Q. What will be the output of the following code?
Code:<?php
function track()
{
static $count = 0;
$count++;
echo $count;
}
track();
track();
track();
?>
β
Correct Answer: (A)
123
<?php
function track()
{
static $count = 0;
$count++;
echo $count;
}
track();
track();
track();
?>
You must be Logged in to update hint/solution