get_all_child_by_attribute
get_all_child_by_attribute($attr_name,$attr_value,$exactly=true,$include_subchildren=false); - get all child interfaces of the DOM element with the specified attribute value (available from version 4.9.34)
the input Function accepts parameters:
$attr_name – attribute name (string). $attr_value – attribute value (string). $exactly – exact match of the attribute value when searching for elements (boolean), by default true - the values of the attribute elements must completely match the passed parameter ($attr_value). if this parameter is set as false, all elements whose attribute value contains the specified string will be found ($attr_value).$include_subchildren – also search for all child subelements. (available from version 7.0.23)
After testing, the function returns the result of its work to the script :
list of DOM interfaces of elements – an object that allows you to quickly perform any operations with all found elements (in fact, an array of interfaces to DOM elements that allows you to perform all operations together, which can be performed separately), the return value type XHEInterfaces