update : 2015.11.03
php.shukuma.com검색:
|
SimpleXMLElement::xpath(PHP 5 >= 5.2.0) SimpleXMLElement::xpath — Runs XPath query on XML data 설명
public array SimpleXMLElement::xpath
( string
$path
)
The xpath method searches the SimpleXML node for
children matching the XPath 인수
반환값
Returns an array of SimpleXMLElement objects or 예제
Example #1 Xpath
<?php 위 예제의 출력: /a/b/c: text /a/b/c: stuff b/c: text b/c: stuff Notice that the two results are equal. 참고
|