XMLReader::next
PHP function
Edit on GitHub ✎
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
Move cursor to next node skipping all subtrees
Description
XMLReader::next(string|null $name = null): bool
Positions cursor on the next node skipping all subtrees. If no such node exists, the cursor is moved to the end of the document.
Parameters
nameThe name of the next node to move to.
Return Values
Success
Changelog
| Version | Description |
|---|---|
| 8.0.0 | name is nullable now. |
See Also
XMLReader::moveToNextAttributeXMLReader::moveToElementXMLReader::moveToAttribute