CakeFest 2024: The Official CakePHP Conference

DOMElement::hasAttribute

(PHP 5, PHP 7, PHP 8)

DOMElement::hasAttribute属性が存在するかどうかを調べる

説明

public DOMElement::hasAttribute(string $qualifiedName): bool

要素のメンバとして qualifiedName という名前の属性が 存在するかどうかを示します。

パラメータ

qualifiedName

要素名。

戻り値

成功した場合に true を、失敗した場合に false を返します。

参考

add a note

User Contributed Notes

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