The SimpleXMLIterator class

(PHP 5, PHP 7, PHP 8)

Giriş

The SimpleXMLIterator provides recursive iteration over all nodes of a SimpleXMLElement object.

Sınıf Sözdizimi

class SimpleXMLIterator extends SimpleXMLElement {
/* Miras alınan yöntemler */
public function SimpleXMLElement::__construct(
    string $veri,
    int $seçenekler = 0,
    bool $veri_bir_url = false,
    string $isimalanı_veya_önek = "",
    bool $önek_var = false
)
public function SimpleXMLElement::addAttribute(string $isim, string $değer, ?string $isimalanı = null): void
public function SimpleXMLElement::addChild(string $isim, ?string $değer = null, ?string $isimalanı = null): ?SimpleXMLElement
public function SimpleXMLElement::asXML(?string $dosya = null): string|bool
public function SimpleXMLElement::attributes(?string $isimalanı_veya_önek = null, bool $önek_var = false): ?SimpleXMLElement
public function SimpleXMLElement::children(?string $isimalanı_veya_önek = null, bool $önek_var = false): ?SimpleXMLElement
public function SimpleXMLElement::count(): int
public function SimpleXMLElement::getDocNamespaces(bool $ardışık = false, bool $kökten = true): array|false
public function SimpleXMLElement::getNamespaces(bool $ardışık = false): array
public function SimpleXMLElement::key(): string
public function SimpleXMLElement::next(): void
public function SimpleXMLElement::registerXPathNamespace(string $önek, string $isimalanı): bool
public function SimpleXMLElement::rewind(): void
public function SimpleXMLElement::valid(): bool
public function SimpleXMLElement::xpath(string $ifade): array|null|false
}

Sürüm Bilgisi

Sürüm: Açıklama
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.