update : 2015.11.03
php.shukuma.com검색:
|
DOMXPath::evaluate(PHP 5 >= 5.1.0, PHP 7) DOMXPath::evaluate — Evaluates the given XPath expression and returns a typed result if possible 설명
public mixed DOMXPath::evaluate
( string
$expression
[, DOMNode $contextnode
[, bool $registerNodeNS = true
]] )
Executes the given XPath 인수
반환값
Returns a typed result if possible or a DOMNodeList
containing all nodes matching the given XPath
If the 변경점
예제
Example #1 Getting the count of all the english books
<?php 위 예제의 출력: There are 2 english books |