Help: php / xml - direct property assignment to avoid using addChild
Hello, I got to this website from some code I found on the net at:
php.net/manual/en/ref.simplexml.php#91561
I'm trying to rewrite the:
function append_simplexml (& $ simplexml_to, & $ simplexml_from)
such that the line:
$ Simplexml_temp = $ simplexml_to-> addChild ($ simplexml_child-> getName (), (string) $ simplexml_child);
does not use the addChild function. But instead does a direct property assignment.
Could I ask if someone can help me on this?
Thanks!
Ivan Shim