note 76127 deleted from function.simplexml-element-getName by danbrown
| From: | danbrown@php.net | Date: | Wed, 16 Sep 2009 15:20:26 +0000 |
| Subject: | note 76127 deleted from function.simplexml-element-getName by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160625@lists.php.net to get a copy of this message | ||
Note Submitter: m0sh3 at Hotmail dot com
----
Some unexpected behaviour noticed:
<?php
$root = new
SimplexmlElement("<root><parent><child/></parent></root>");
echo $root->parent->child->getName();
?>
"child" is expected, although "parent" is returned