Created
February 27, 2014 13:56
-
-
Save kkreft/9250494 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$obj_merged = (object) array_merge((array) $obj1, (array) $obj2); |
tenkiu
this is true only if the objects are containing only properties, if there are methods they will be removed
u should loop over theme both to preserve all
this is true only if the objects are containing only properties, if there are methods they will be removed
u should loop over theme both to preserve all
Any example for copying methods?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks you!