DOMElement::hasAttributeNS
(PHP 5, PHP 7)
DOMElement::hasAttributeNS — 属性が存在するかどうかを調べる
説明
public DOMElement::hasAttributeNS
( string $namespaceURI
, string $localName
) : bool
要素のメンバとして localName
という名前の属性が
名前空間 namespaceURI
に存在するかどうかを示します。
パラメータ
namespaceURI
- 名前空間 URI。
localName
- ローカル名。
返り値
成功した場合に true
を、失敗した場合に false
を返します。
参考
- DOMElement::hasAttribute() - 属性が存在するかどうかを調べる
- DOMElement::getAttributeNS() - 属性の値を返す
- DOMElement::setAttributeNS() - 新しい属性を追加する
- DOMElement::removeAttributeNS() - 属性を削除する