<?php class test { private $a = 1; protected $b = 2; public $c = 3; private $d = 4; protected $e = 5; public $f = 6; } $obj = new test; var_dump((array)$obj);
You have javascript disabled. You will not be able to edit any code.