xmlArray::path

Description

Finds any elements that match the path specified.

Syntax

mixed xmlArray::path (string $path[, bool $return_full])



Parameter $path

Expected type: String
Description: The path to the specified element (example: $path = 'html/body';)



Parameter $return_full

Expected type: Boolean
Description: Whether or not to return a full set. Defaults to false.



Return value

Expected type: Mixed
Description:

Possible types
Allowed values Description
Boolean False if nothing was found
Object An xmlArray object containing the search results


Notes

  • Will always return a set if there is more than one of the element or return_full is true
Advertisement: