<?php class a { private static $s = 0; function getA(){ return self::$s; } function increaseA (){ self::$s++; } } $a1 = new a(); $a1->increaseA(); var_dump($a1->getA());
You have javascript disabled. You will not be able to edit any code.