DOMElement::hasAttribute

(PHP 5, PHP 7)

DOMElement::hasAttributeChecks to see if attribute exists

说锟斤拷

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

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

锟斤拷锟斤拷

name

The attribute name.

锟斤拷锟斤拷值

锟缴癸拷时锟斤拷锟斤拷 TRUE锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE锟斤拷

锟轿硷拷