DOMElement::hasAttribute

(PHP 5, PHP 7)

DOMElement::hasAttributeChecks to see if attribute exists

Opis

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

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.

Zobacz też:

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top