Creates badge.
badge( string $label [, array $options ] ) : string
$label (string) (Required) Text inside the label.
$options (array) (Optional) Default value: []
Name | Type | Default | Description |
---|---|---|---|
class | string | '' | CSS class. |
icon | string | '' | Icon CSS class. Eg. fa fa-beer. |
(string)
echo badge('Badge');
// <span class='badge'>Badge</span>