$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 |
null |
Return type
string
|null
The returns the attribute value or the given fallback if the attribute does not exist
Name | Type | Default |
---|---|---|
$attr * | string |
– |
$fallback | string |null |
null |
string
|null