DOMNode::lookupNamespaceURI
PHP Manual
PHP Manual»DOMNode»DOMNode::lookupNamespaceURI

DOMNode::lookupNamespaceURI

(PHP 5, PHP 7, PHP 8)

DOMNode::lookupNamespaceURI Gets the namespace URI of the node based on the prefix

Опис

public function 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.

Прогляньте також

To Top