DOMElement::getAttributeNS
(PHP 5)
DOMElement::getAttributeNS — 属性の値を返す
説明
string DOMElement::getAttributeNS
( string $namespaceURI
, string $localName
)
現在のノードから、名前空間 namespaceURI における localName というローカル名の属性の値を取得します。
パラメータ
- namespaceURI
-
名前空間 URI。
- localName
-
ローカル名。
返り値
属性の値、あるいは localName および namespaceURI に対応する属性が 見つからなかった場合には空の文字列を返します。
参考
- DOMElement::hasAttributeNS - 属性が存在するかどうかを調べる
- DOMElement::setAttributeNS - 新しい属性を追加する
- DOMElement::removeAttributeNS - 属性を削除する
DOMElement::getAttributeNS
There are no user contributed notes for this page.
