PHP array of object(stdClass) fusion/intersect?
Posted
by
Gremo
on Stack Overflow
See other posts from Stack Overflow
or by Gremo
Published on 2011-11-27T03:25:46Z
Indexed on
2011/11/27
17:50 UTC
Read the original article
Hit count: 183
$arr1
is an associative array of anonymus objects:
array
15898 =>
object(stdClass)[8]
public 'date' => int
$arr2 is another associative array with two (or more, it's not fixed) properties:
array
15898 =>
object(stdClass)[10]
public 'fruits'
public 'drinks'
I can't find any function for intersect and content fusion when dealing with objects. Basically i'd like to obtain:
array
15898 =>
object(stdClass)[8]
public 'date' => int
public 'fruits'
public 'drinks'
Question is: is this even possible?
© Stack Overflow or respective owner