A
Q. What will be the output of the following code?
Code:
<?php
function track()
{
static $count = 0;
$count++;
echo $count;
}
track();
track();
track();
?>
function track()
{
static $count = 0;
$count++;
echo $count;
}
track();
track();
track();
?>
- Correct Answer - Option(A)
- Views: 32
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.