Creates a <label> html tag.
label($child, $for, $class, $id, $style, $data, $attr);| Parameter | Required | Default |
|---|---|---|
| $child | no | false |
| $for | no | null |
| $class | no | null |
| $id | no | null |
| $style | no | null |
| $data | no | null |
| $attr | no | null |
string
Usage:
echo label('First Name','first-name');Result:
<label for="first-name">First Name</label>