The DOMXPath class
(PHP 5, PHP 7, PHP 8)
簡介
Supports XPath 1.0
類摘要
屬性
- document
- registerNodeNamespaces
-
When set to
true
, namespaces in the node are registered.
更新日誌
版本 | 說明 |
---|---|
8.0.0 | The registerNodeNamespaces property has been added. |
目錄
- DOMXPath::__construct — Creates a new DOMXPath object
- DOMXPath::evaluate — Evaluates the given XPath expression and returns a typed result if possible
- DOMXPath::query — Evaluates the given XPath expression
- DOMXPath::registerNamespace — Registers the namespace with the DOMXPath object
- DOMXPath::registerPhpFunctions — Register PHP functions as XPath functions