DOMElement::hasAttribute
属性が存在するかどうかを調べる
説明
public bool DOMElement::hasAttribute(string $qualifiedName)
戻り値
成功した場合に true を、失敗した場合に false を返します。
参考
- DOMElement::hasAttributeNS
- DOMElement::getAttribute
- DOMElement::setAttribute
- DOMElement::removeAttribute