<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $tab = 'tabValue'; } $t = (array) new Foo(); var_dump($t['bar']);
You have javascript disabled. You will not be able to edit any code.