Easy Tutorial
❮ Func Filesystem Filesize Func Cal Cal To Jd ❯

PHP xpath() Function



Definition and Usage

The xpath() function runs an XPath query on an XML document.

If successful, the function returns an array of SimpleXMLElements objects. If it fails, it returns FALSE.


Syntax

Parameter Description
path Required. Specifies the XPath path to search for in the XML document.

Example

XML File

PHP Code

The above code will output:

❮ Func Filesystem Filesize Func Cal Cal To Jd ❯