DOMElement
PHP Manual

DOMElement::hasAttribute

(PHP 5)

DOMElement::hasAttributeChecks 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
PHP Manual