PHP 8.4.2 Released!

The Dom\NamespaceInfo class

(PHP 8 >= 8.4.0)

Вступ

This represents immutable information about namespaces of an element. This decouples namespaces from attributes, which was incorrectly intertwined for the old DOM classes.

Короткий огляд класу

final readonly class Dom\NamespaceInfo {
/* Властивості */
public ?string $prefix;
}

Властивості

prefix
The namespace prefix of the attribute.
namespaceURI
The namespace URI of the attribute.
element
The element that this namespace information is about.
add a note

User Contributed Notes

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