SyntaxFix
Write A Post
Hire A Developer
Questions
To merge any number of raw objects
function merge_obj(){ foreach(func_get_args() as $a){ $objects[]=(array)$a; } return (object)call_user_func_array('array_merge', $objects); }