xmlArray::path

Description

Finds any elements that match the path specified.

Syntax

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



Parameter $path

Expected type: String
Description: A path



Parameter $return_full

Expected type: Boolean
Description: Whether or not to return a full result set even if there's only one element


Notes

  • Will always return a set if there is more than one of the element or return_full is true.
  • Returns in the form of a new xmlArray.
  • Example: $element = $xml->path('html/body');
Advertisement: