<?php class X { static $gen = 0; function test(){ var_dump((__CLASS__)::$gen++); } } $x = new X; $x->test();
You have javascript disabled. You will not be able to edit any code.