<?php class foo { public static function bar() { static $baz= 0; return ++$baz; } } var_dump(foo::bar(), foo::bar());
You have javascript disabled. You will not be able to edit any code.