<?phpfunction track() { static $var = 0; $var++; echo $var; } track(); track(); track();?>
Because $count is static, it retains its previous value each time the function is executed.
Previous Question Next Question
Your comments will be displayed only after manual approval.