(PHP 5, PHP 7)
DOMElement::hasAttribute — Checks to see if attribute exists
$name
Indicates whether attribute named name exists as a member of the element.
name
The attribute name.
성공 시 TRUE를, 실패 시 FALSE를 반환합니다.
TRUE
FALSE