DOMXPath::registerNamespace

(PHP 5, PHP 7, PHP 8)

DOMXPath::registerNamespace Registers the namespace with the DOMXPath object

Descrizione

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

Registers the namespace and prefix with the DOMXPath object.

Elenco dei parametri

prefix

The prefix.

namespace

The URI of the namespace.

Valori restituiti

Restituisce true in caso di successo, false in caso di fallimento.