Shadab
Well-known member
If I understand correctly, the "default" value is used when the input data is not of the expected data type or cannot be coerced into the expected data type. And the default value of numeric data types is zero, unless explicitly specified in the "Filter Options" array.
Here's a quick test I did, using the XenForo_Input::UINT filter...
The values highlighted should be 16 (passed explicitly using the filter options) instead of 0.
This is the same behavior with all the numeric data types:
Here's a quick test I did, using the XenForo_Input::UINT filter...
The values highlighted should be 16 (passed explicitly using the filter options) instead of 0.
This is the same behavior with all the numeric data types:
- XenForo_Input::NUM
- XenForo_Input::UNUM
- XenForo_Input::INT
- XenForo_Input::UINT
- XenForo_Input::FLOAT