DOMNode::lookupNamespaceURI

(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.

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top