(PHP 5, PHP 7)
DOMElement::hasAttribute — Checks to see if attribute exists
$name
) : bool
Indicates whether attribute named name
exists as a member of the element.
name
The attribute name.
锟缴癸拷时锟斤拷锟斤拷 TRUE
锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE
锟斤拷