DOMElement
PHP Manual

DOMElement::hasAttribute

(PHP 5, PHP 7)

DOMElement::hasAttributeChecks to see if attribute exists

Descrierea

public bool DOMElement::hasAttribute ( string $name )

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

Parametri

name

The attribute name.

Valorile întoarse

Întoarce valoarea TRUE în cazul succesului sau FALSE în cazul eșecului.

A se vedea și


DOMElement
PHP Manual