SimpleXML: Accessing Unknown ElementTag: SimpleXML, SimpleXMLElement, XML, element Category: PHP Basicpost: 17 Apr 2008 read: 611 PHP SimpleXML Step By Step Tutorial - Part 5: It is easy when we know structure of document. We can navigate to elements just using the element names as properties. But how if we have not known? We can use children() methods that returns an interable SimpleXMLElement object, which allows you to iterate through all the child elements of an element.
For iteration, we can try like this:
|
| | Give Your Opinion | Recommend |
|


