I have 2 objects.
Here is the output of the objects when I print them out with print_r
method of the PHP.
Oject #1;
stdClass Object ( [id] => 1 [portal_id] => 1 [name=> NEVZAT )
Object #2;
stdClass Object ( [surname] => YILMAZ)
I want to concatenate these 2 objects to each other so at the end of the process I need an Object which contains all of the variables of the 2 objects;
stdClass Object ( [id] => 1 [portal_id] => 1 [name=> NEVZAT [surname] => YILMAZ )