update : 2015.11.03
php.shukuma.com검색:
|
DOMNode::getNodePath(PHP 5 >= 5.2.0, PHP 7) DOMNode::getNodePath — Get an XPath for a node 설명
public string DOMNode::getNodePath
( void
)
Gets an XPath location path for the node. 인수이 함수는 인수가 없습니다. 반환값
Returns a string containing the XPath, or 예제
Example #1 DOMNode::getNodePath() example
<?php 위 예제의 출력: /fruits /fruits/apples /fruits/apples/apple[1] /fruits/apples/apple[2] /fruits/pears /fruits/pears/pear |