PHP. Руководство по PHP. 2005
DOMElement->setAttribute()
HREF="function.dom-domelement-removeattributens.html"> HREF="function.dom-domelement-setattributenode.html"> Пред.
DOMElement->setAttribute()
Описание
class DOMElement {bool setAttribute (string name, string value)
}
Sets an attribute with name name to the given value. If the attribute does not exist, it will be created.