<?php class Foo { public static $var; public static function GetVar() { return ++static::$var; } } var_dump(Foo::GetVar()); var_dump(Foo::GetVar());
You have javascript disabled. You will not be able to edit any code.