GoLang DOMElement::hasAttribute

request it (305)
GoLang replacement for PHP's DOMElement::hasAttribute [edit | history]



Do you know a GoLang replacement for PHP's DOMElement::hasAttribute? Write it!

PHP DOMElement::hasAttribute

PHP original manual for DOMElement::hasAttribute [ show | php.net ]

DOMElement::hasAttribute

(PHP 5, PHP 7)

DOMElement::hasAttributeChecks to see if attribute exists

Description

public bool DOMElement::hasAttribute ( string $name )

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

Parameters

name

The attribute name.

Return Values

Returns TRUE on success or FALSE on failure.

See Also