Navigation

Search

xmlArray::fetch

Description

Retrieves the textual value of the specified path.

Syntax

void xmlArray::fetch (string $path[, bool $get_elements])



Parameter $path

Expected type: String
Description: The path to the element to fetch



Parameter $get_elements

Expected type: Boolean
Description: Whether or not to include elements. Default is false.


Notes

  • Example: $data = $xml->path('/html/head/title');
View all versions of this function