DOMXPath::registerNamespace

(PHP 5, PHP 7, PHP 8)

DOMXPath::registerNamespace Registers the namespace with the DOMXPath object

说明

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

Registers the namespace and prefix with the DOMXPath object.

参数

prefix

The prefix.

namespace

The URI of the namespace.

返回值

成功时返回 true, 或者在失败时返回 false

7i24.Com