set_attribute
set_attribute($name_attr,$value_attr); - change the attribute of an element in the DOM model
The function accepts parameters as input:
$name_attr – name of the attribute to be changed (string). $value_attr – attribute value to be set to the attribute (string).
After the function returns the result of their work in the script (the return value type is boolean):
true – executed successfullyfalse to find this element failed (e.g. no items that meet the specified criteria or not this frame)