xmlArray::set

Description

Returns an array of xmlArray's matching the specified path.

Syntax

array xmlArray::set (string $path)



Parameter $path

Expected type: String
Description: A path



Return value

Expected type: Array
Description: An array of xmlArray objects


Notes

  • This differs from ->path(path, true) in that instead of an xmlArray of elements, an array of xmlArray's is returned for use with foreach.
  • Example: foreach($xml->set('html/body/p') as $p)
Advertisement: