<?php class Foo { protected $bar = 'bar'; public $foobar = 'foobar'; } function getFoo() { return new Foo(); } var_dump((object) getFoo(), new Foo());
You have javascript disabled. You will not be able to edit any code.