DOMElement::hasAttribute

(PHP 5, PHP 7)

DOMElement::hasAttributeChecks to see if attribute exists

설명

public bool DOMElement::hasAttribute ( string $name )

Indicates whether attribute named name exists as a member of the element.

인수

name

The attribute name.

반환값

성공 시 TRUE를, 실패 시 FALSE를 반환합니다.

참고

add a note add a note

User Contributed Notes

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