<?php class Foo { public $foo = 'foo'; protected $bar = 'two'; private $baz = 'three'; } $b = (array) new Foo(); var_dump($b);
You have javascript disabled. You will not be able to edit any code.