PHPverse 2025

The Dom\NamespaceInfo class

(PHP 8 >= 8.4.0)

Introduction

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

Class synopsis

final readonly class Dom\NamespaceInfo {
/* Properties */
public ?string $prefix;
}

Properties

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant