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
prefixThe prefix.
namespaceThe URI of the namespace.
Return Values
Success