Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<DOMNode::isSupportedDOMNode::lookupPrefix>
^DOMNodeLast updated: Mon, 26 Oct 2026

DOMNode::lookupNamespaceURI

(PHP 5, PHP 7, PHP 8)

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

Description

public function DOMNode::lookupNamespaceURI(?string $prefix): ?string

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::isSupportedDOMNode::lookupPrefix>
^DOMNodeLast updated: Mon, 26 Oct 2026