(PHP 5, PHP 7, PHP 8)
DOMNode::lookupNamespaceURI — Gets the namespace URI of the node based on the prefix
public DOMNode::lookupNamespaceURI(?string $prefix): ?string
Gets the namespace URI of the node based on the prefix.
prefix The prefix to look for. If this parameter is null, the method will return the default namespace URI, if any.
Returns the associated namespace URI or null if none is found.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/domnode.lookupnamespaceuri.php