note 39684 deleted from function.domxml-xmltree by sobak
| From: | sobak@php.net | Date: | Thu, 01 Dec 2016 12:36:40 +0000 |
| Subject: | note 39684 deleted from function.domxml-xmltree by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207833@lists.php.net to get a copy of this message | ||
Note Submitter: Alan71
----
In the function of nutbar, try to replace line 10 by
$objptr = $branch->node_value();
and line 15 by :
$objptr = &$object[$branch->node_name()]; //without the '[]'
it makes an array much more easier to read.
Previously, it produces an array like $MyArray[ROOT][0][BRANCH1][0][BRANCH2][0][5], and now
$MyArray[ROOT][BRANCH1][BRANCH2][5]. There isn't bugs in the example I use, and I haven't
tested with arguments. I think that an implementation of a part of nospam's code is enough.
I hope this will help!