Die Klasse SimpleXMLIterator
(PHP 5 >= 5.1.3, PHP 7, PHP 8)
Einführung
Der SimpleXMLIterator ermöglicht die rekursive Iteration über alle Knoten eines SimpleXMLElement-Objektes.
Klassenbeschreibung
$qualifiedName
, string $value
, ?string $namespace
= null
): void$qualifiedName
, ?string $value
= null
, ?string $namespace
= null
): ?SimpleXMLElement$namespaceOrPrefix
= null
, bool $isPrefix
= false
): ?SimpleXMLElement$namespaceOrPrefix
= null
, bool $isPrefix
= false
): ?SimpleXMLElement$recursive
= false
, bool $fromRoot
= true
): array|falseChangelog
Version | Beschreibung |
---|---|
8.0.0 | SimpleXMLIterator implementiert nun Stringable. |
Inhaltsverzeichnis
- SimpleXMLIterator::current — Returns the current element
- SimpleXMLIterator::getChildren — Returns the sub-elements of the current element
- SimpleXMLIterator::hasChildren — Checks whether the current element has sub elements
- SimpleXMLIterator::key — Return current key
- SimpleXMLIterator::next — Move to next element
- SimpleXMLIterator::rewind — Rewind to the first element
- SimpleXMLIterator::valid — Check whether the current element is valid