This function can be used to see if a single item or a given XPath
match certain conditions.
public static matches ( array $data, mixed $conditions, integer $i = null, integer $length = null ) : boolean | ||
$data | array | An array of data to execute the match on. |
$conditions | mixed | An array of condition strings or an XPath expression. |
$i | integer | Optional: The 'nth'-number of the item being matched. |
$length | integer | |
return | boolean |