DOMNode::lookupNamespaceURI

Gets the namespace URI of the node based on the prefix

Description

public stringnull DOMNode::lookupNamespaceURI(stringnull $prefix)

Gets the namespace URI of the node based on the prefix.

Parameters

prefix

The 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