DOMNode::lookupNamespaceURI
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Gets the namespace URI of the node based on the prefix
Description
DOMNode::lookupNamespaceURI(string|null $prefix): string|null
Gets the namespace URI of the node based on the prefix.
Parameters
prefixThe prefix to look for. If this parameter is null, the method will return the default namespace URI, if any.
Return Values
Returns the associated namespace URI or null if none is found.
See Also
DOMNode::lookupPrefix