<?php class test { private $a; private $b; function __construct() { $this->a = 'AAA'; $this->b = 2; } } $test = new test(); print_r(get_object_vars($test));
You have javascript disabled. You will not be able to edit any code.