A

Admin • 833.24K Points
Coach

Q. What will be the output of the following code?

Code:
<?php
function track()
{
static $count = 0;
$count++;
echo $count;
}
track();
track();
track();
?>
  • (A) 123
  • (B) 111
  • (C) 000
  • (D) 011
  • Correct Answer - Option(A)
  • Views: 32
  • Filed under category PHP
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.