attr()
Generates a list of HTML attributes
Parameters
Name | Type | Default | Description |
---|---|---|---|
$attr | array |
null |
A list of attributes as key/value array |
$before | string |
null |
An optional string that will be prepended if the result is not empty |
$after | string |
null |
An optional string that will be appended if the result is not empty |
Return type
string