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