PHP
HTML

DOMXPath (class)

The DOMXPath class

介绍

(PHP 5, PHP 7)

支持XPath 1.0

课程简介

DOMXPath {

/* Properties */

public DOMDocument $document ;

/* Methods */

public __construct ( DOMDocument $doc )

public mixed evaluate ( string $expression [, DOMNode $contextnode [, bool $registerNodeNS = true ]] )

public DOMNodeList query ( string $expression [, DOMNode $contextnode [, bool $registerNodeNS = true ]] )

public bool registerNamespace ( string $prefix , string $namespaceURI )

public void registerPhpFunctions ([ mixed $restrict ] )

}

属性

文件

目录

  • DOMXPath::__construct — Creates a new DOMXPath object

  • DOMXPath :: evaluate - 评估给定的XPath表达式,并在可能的情况下返回类型化结果

  • DOMXPath :: query - 计算给定的XPath表达式

  • DOMXPath :: registerNamespace - 使用DOMXPath对象注册名称空间

  • DOMXPath :: registerPhpFunctions - 将PHP函数注册为XPath函数

← DOMText::splitText

DOMXPath::__construct →