note 81658 deleted from function.simplexml-element-getName by danbrown

From: Date: Wed, 16 Sep 2009 15:19:17 +0000
Subject: note 81658 deleted from function.simplexml-element-getName by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160622@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- In Response to: Some unexpected behaviour noticed: <?php echo $root->parent->child->getName(); ?> "child" is expected, although "parent" is returned My Suggestion is to use <?php echo $root->parent[0]->child[0]->getName(); ?> Instead. I dunno why, but this works.

« previous php.notes (#160622) next »