<?php class Test implements Countable { private $prop1, $prop2,$prop3,$prop4; } $t = new Test; echo count(get_object_vars($t));
You have javascript disabled. You will not be able to edit any code.