xmlArray::exists

Description

Returns whether the specified path matches at least one element.

Syntax

bool xmlArray::exists (string $path)



Parameter $path

Expected type: String
Description: A path to search for (in XPath format - examples: 'html/body', 'head/meta', etc.)



Return value

Expected type: Boolean
Description: True if the path matches at least one element, false otherwise.


Advertisement: