update : 2015.11.03
php.shukuma.com검색:
|
DOMXPath::query(PHP 5, PHP 7) DOMXPath::query — Evaluates the given XPath expression 설명
public DOMNodeList DOMXPath::query
( string
$expression
[, DOMNode $contextnode
[, bool $registerNodeNS = true
]] )
Executes the given XPath 인수
반환값
Returns a DOMNodeList containing all nodes matching
the given XPath
If the 변경점
예제
Example #1 Getting all the english books
<?php 위 예제의 출력: Found The Grapes of Wrath, by John Steinbeck Found The Pearl, by John Steinbeck
We can also use the
<?php 참고
|