PHP 8.3.4 Released!

DOMElement::hasAttribute

(PHP 5, PHP 7, PHP 8)

DOMElement::hasAttributeChecks to see if attribute exists

Beschreibung

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

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

Parameter-Liste

qualifiedName

The attribute name.

Rückgabewerte

Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.

Siehe auch

add a note

User Contributed Notes

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