DOMElement::getElementsByTagNameNS
DOMElement::hasAttributeNS
DOMElement
PHP Manual

# DOMElement::hasAttribute

(PHP 5)

DOMElement::hasAttribute — Checks to see if attribute exists

### 설명

bool DOMElement::hasAttribute ( string `$name` )

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

### 인수

`name`

  The attribute name.

### 반환값

성공할 경우 `TRUE`를, 실패할 경우 `FALSE`를 반환합니다.

### 참고

- DOMElement::hasAttributeNS - Checks to see if attribute exists
- DOMElement::getAttribute - Returns value of attribute
- DOMElement::setAttribute - Adds new attribute
- DOMElement::removeAttribute - Removes attribute

DOMElement::getElementsByTagNameNS
DOMElement::hasAttributeNS
DOMElement
PHP Manual