Sanitized an integer (unsigned, unless you specify a negative minimum value)
Usage
// basic usage
$int = $sanitizer->int(mixed $value);
// usage with all arguments
$int = $sanitizer->int(mixed $value, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
value | mixed | Value you want to sanitize as an integer |
options (optional) | array | Optionally specify any one or more of the following to modify behavior:
|
Return value
int
Returns integer, or specified blankValue (which doesn't necessarily have to be an integer)
$sanitizer methods and properties
API reference based on ProcessWire core version 3.0.236