DOMNode::lookupPrefix

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

public function lookupPrefix(
  string $namespaceURI,
): string;

Parameters

  • string $namespaceURI

Return Values

  • mixed - - The prefix of the namespace.