$field->toInt()
Converts the field value into a proper integer
Parameters
Name | Type | Default | Description |
---|---|---|---|
$default | int |
0 |
Default value if the field is empty |
Return type
int
Aliases
You can use the following aliases for this field method in your template:
$field->int(…)