Location: PHPKode > projects > phc > test/subjects/codegen/static.php
<?php
/*
 * Test of the "static" keyword
 */

	function f()
	{
		static $x = 0;
		echo $x;
		$x++;
	}

	f();
	f();
?>
Return current item: phc