Permits you to set the value of an input or textarea. Allows you to safely use HTML and characters such as quotes within form elements without breaking out of the form
Parameters | |||
---|---|---|---|
string
|
$name |
The input element field name |
# |
mixed
|
$defaultValue = null |
The default value of the input element (optional) |
# |
Returns | |
---|---|
mixed
|
The value of the input element |