<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $tab = 'tabValue'; } $arr = ((object)(array)new Foo()); print_r($arr); echo $arr->{'baz:protected'};
You have javascript disabled. You will not be able to edit any code.