PHP 8.6.0 Alpha 2 available for testing

The Dom\ParentNode interface

(PHP 8 >= 8.4.0)

Einführung

This is the modern, spec-compliant equivalent of DOMParentNode.

Interface-Übersicht

interface Dom\ParentNode {
/* Eigenschaften */
public readonly Dom\HTMLCollection $children;
/* Methoden */
public function append(Dom\Node|string ...$nodes): void
public function prepend(Dom\Node|string ...$nodes): void
public function querySelector(string $selectors): ?Dom\Element
public function querySelectorAll(string $selectors): Dom\NodeList
public function replaceChildren(Dom\Node|string ...$nodes): void
}

Eigenschaften

children
A Dom\HTMLCollection containing all child elements of this node. Available as of PHP 8.5.0.

Inhaltsverzeichnis

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top