<html><body>
<?php

/* 
Static variables
*/

function counter()
{
	static $a = 1;
	echo $a++, "<BR>\n";
}

for ($i=0; $i < 3; $i++)
	counter();	

?>
</body></html>
