(PHP 5, PHP 7, PHP 8)
DOMNode::lookupPrefix — Gets the namespace prefix of the node based on the namespace URI
$namespace
): ?stringGets the namespace prefix of the node based on the namespace URI.
namespace
The namespace URI.
The prefix of the namespace.