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



Return value

Expected type: Boolean
Description:


Notes

  • Example: echo $xml->exists('html/body') ? 'y' : 'n';
Advertisement: