DOMElement::hasAttributeNS

(PHP 5, PHP 7)

DOMElement::hasAttributeNS Checks to see if attribute exists

说锟斤拷

public DOMElement::hasAttributeNS ( string $namespaceURI , string $localName ) : bool

Indicates whether attribute in namespace namespaceURI named localName exists as a member of the element.

锟斤拷锟斤拷

namespaceURI

The namespace URI.

localName

The local name.

锟斤拷锟斤拷值

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

锟轿硷拷