$element->attr()
The returns the attribute value or the given fallback if the attribute does not exist
Parameters
Name | Type | Default |
---|---|---|
$attr * | string |
– |
$fallback | string |
null |
Return type
string
|null