DOMElement::removeAttribute

(PHP 5, PHP 7)

DOMElement::removeAttributeRemoves attribute

˵��

public DOMElement::removeAttribute ( string $name ) : bool

Removes attribute named name from the element.

����

name

The name of the attribute.

����ֵ

�ɹ�ʱ���� TRUE�� ������ʧ��ʱ���� FALSE��

�����쳣

DOM_NO_MODIFICATION_ALLOWED_ERR

Raised if the node is readonly.

�μ�