You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
615 B
615 B
title |
---|
Element::getAttribute |
Element::getAttribute — Returns value of attribute
Description
public Element::getAttribute ( string $qualifiedName ) : string|null
Gets the value of the attribute with name qualifiedName
for the current node.
Parameters
qualifiedName
- The name of the attribute.
Return Values
Returns a string on success or null
if no attribute with the given qualifiedName
is found. \DOMElement::getAttribute
returns an empty string on failure which is incorrect in newer versions of the DOM.