php8.5
Home/ Manual/ dom / domxpath/ DOMXPath::__construct

DOMXPath::__construct

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Creates a new DOMXPath object

Description

DOMXPath::__construct(DOMDocument $document, bool $registerNodeNS = true)

Creates a new DOMXPath object.

Parameters

document

The DOMDocument associated with the DOMXPath.

Source: reference/dom/domxpath/construct.xml · from the official PHP manual (php/doc-en)