filter()
filter(mixed $value) : integer|null
For empty strings (think HTTP requests, where everything is a string), or actual nulls, we return null. If not, we return the value cast to an int.
Parameters
mixed | $value |
This filter is intended to assist with DB integer fields that are allowed to be nullable.