πŸ“Š PHP
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) 123

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
98046
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Santosh Mishra
Publisher
πŸ“ˆ
83%
Success Rate