DOMNode::lookupPrefix

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

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

Parameters

  • string $namespaceURI

Returns

  • mixed - - The prefix of the namespace.