CakeFest 2024: The Official CakePHP Conference

DOMElement::getAttributeNS

(PHP 5, PHP 7, PHP 8)

DOMElement::getAttributeNS属性の値を返す

説明

public DOMElement::getAttributeNS(?string $namespace, string $localName): string

現在のノードから、名前空間 namespace における localName というローカル名の属性の値を取得します。

パラメータ

namespace

名前空間 URI。

localName

ローカル名。

戻り値

属性の値、あるいは localName および namespace に対応する属性が 見つからなかった場合には空の文字列を返します。

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top