DOMXPath::registerNamespace

(PHP 5, PHP 7)

DOMXPath::registerNamespace Registers the namespace with the DOMXPath object

说明

public DOMXPath::registerNamespace ( string $prefix , string $namespaceURI ) : bool

Registers the namespaceURI and prefix with the DOMXPath object.

参数

prefix

The prefix.

namespaceURI

The URI of the namespace.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE