DomQuery::removeAttr();
Removes a specified attribute from all matched elements from the previous XPath expression.
$DomQuery = new DomQuery;
$DomQuery->load($xml)->path('//foo')->removeAttr('id');
Definition:
public function removeAttr($key)
Parameters:
| Name | Type | Description |
|---|---|---|
| $key | String | The name of the attribute to remove. |