The SimpleXMLElement class
Guide
Edit on GitHub ✎
Represents an element in an XML document.
Intro
Represents an element in an XML document.
Class synopsis
class SimpleXMLElement implements Stringable implements Countable implements RecursiveIterator { }
Changelog
| Version | Description |
|---|---|
| 8.4.0 | Get methods (such as SimpleXMLElement::asXML or SimpleXMLElement::getName) and casting a SimpleXMLElement to a String no longer implicitly rewind the iterator. The iterator must now be rewound explicitly, using SimpleXMLElement::rewind, where needed. |
| 8.0.0 | SimpleXMLElement implements Stringable, Countable, and RecursiveIterator now. |
Simplexmlelement