DOMElement
PHP Manual

DOMElement::hasAttribute

(No version information available, might be only in CVS)

DOMElement::hasAttributeChecks to see if attribute exists

Opis

bool DOMElement::hasAttribute ( string $name )

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

Parametry

name

The attribute name.

Zwracane wartości

Zwraca TRUE w przypadku powodzenia, FALSE w przypadku błędu.

Patrz także


DOMElement
PHP Manual