|
PHP5中文手册
DOMXPath->evaluate()(No version information available, might be only in CVS) DOMXPath->evaluate() — Evaluates the given XPath expression and returns a typed result if possible. 说明DOMXPath
mixed evaluate
( string $expression
[, DOMNode $contextnode
] )
Executes the given XPath expression and returns a typed result if possible. 参数
返回值Returns a typed result if possible or a DOMNodeList containing all nodes matching the given XPath expression . 范例
Example#1 Getting the count of all the english books
<?php 上例将输出:
|