input() public static method
Generates an input type of the given type.
| public static string input ( $type, $name = null, $value = null, $options = [] ) | ||
|---|---|---|
| $type | string |
The type attribute. |
| $name | string |
The name attribute. If it is null, the name attribute will not be generated. |
| $value | string |
The value attribute. If it is null, the value attribute will not be generated. |
| $options | array |
The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using encode(). If a value is null, the corresponding attribute will not be rendered. See renderTagAttributes() for details on how attributes are being rendered. |
| return | string |
The generated input tag |
Please login to continue.