php8.5
Home/ Manual/ dom / domxpath/ DOMXPath::registerNamespace

DOMXPath::registerNamespace

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Registers the namespace with the DOMXPath object

Description

DOMXPath::registerNamespace(string $prefix, string $namespace): bool

Registers the namespace and prefix with the DOMXPath object.

Parameters

prefix

The prefix.

namespace

The URI of the namespace.

Return Values

Success

Source: reference/dom/domxpath/registernamespace.xml · from the official PHP manual (php/doc-en)