Registers the namespace with the DOMXPath object

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

Leave a Reply

Your email address will not be published. Required fields are marked *