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 to search for



Return value

Expected type: Array
Description: An array of xmlArray objects


Notes

  • Differs from xmlArray::path($path, true) in that it returns an array of xmlArray's for use with foreach.
  • Example: foreach($xmlArray->set('html/body/p') AS $p)
Advertisement: