PHP Manual
后退 |  | 前进

# DOMXPath->registerNamespace()

(no version information, might be only in CVS)

DOMXPath->registerNamespace() -- Registers the namespace with the DOMXPath object

## 说明

class DOMXPath {
bool registerNamespace ( string prefix, string namespaceURI )
}

Registers the namespaceURI and prefix with the DOMXPath object.

## 参数

prefix

  The prefix.

namespaceURI

  The URI of the namespace.

## 返回值

如果成功则返回 `TRUE`，失败则返回 `FALSE`。

后退 | 起点 | 前进
DOMXPath->query() | 上一级 | dom_import_simplexml