<?php $obj = new stdClass(); $obj->hello = 'world'; $obj->foo = 'bar'; $ubj = (object) array( 'hello' => $obj->hello, 'foo' => $obj->foo, 'gugugu' => $obj->gugugu, ); print_r($ubj);
You have javascript disabled. You will not be able to edit any code.