<?php $o = new class () { public string $foo = 'bar'; protected string $baz = 'qux'; private string $xyz = 'xyz'; }; $ao = new ArrayObject($o, ArrayObject::ARRAY_AS_PROPS); var_dump((object) $ao->getArrayCopy());
You have javascript disabled. You will not be able to edit any code.