The SimpleXMLIterator class
(No version information available, might only be in Git)
简介
The SimpleXMLIterator provides recursive iteration over all nodes of a SimpleXMLElement object.
类摘要
/* 继承的方法 */
public SimpleXMLElement::__construct(
string
int
bool
string
bool
)
string
$data,int
$options = 0,bool
$dataIsURL = false,string
$namespaceOrPrefix = "",bool
$isPrefix = false)
public SimpleXMLElement::addAttribute(string
$qualifiedName, string $value, ?string $namespace = null): voidpublic SimpleXMLElement::addChild(string
$qualifiedName, ?string $value = null, ?string $namespace = null): ?SimpleXMLElementpublic SimpleXMLElement::attributes(?string
$namespaceOrPrefix = null, bool $isPrefix = false): ?SimpleXMLElementpublic SimpleXMLElement::children(?string
}$namespaceOrPrefix = null, bool $isPrefix = false): ?SimpleXMLElement更新日志
| 版本 | 说明 |
|---|---|
| 8.0.0 | Iterator methods (SimpleXMLIterator::hasChildren(), SimpleXMLIterator::getChildren(), SimpleXMLIterator::current(), SimpleXMLIterator::key(), SimpleXMLIterator::next(),SimpleXMLIterator::rewind(), SimpleXMLIterator::valid()) were moved to SimpleXMLElement. |
| 8.0.0 | SimpleXMLIterator implements Stringable now. |