Sanitize to signed integer (negative or positive)
Usage
// basic usage
$int = $sanitizer->intSigned(mixed $value);
// usage with all arguments
$int = $sanitizer->intSigned(mixed $value, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
value | mixed | |
options (optional) | array | Optionally specify any one or more of the following to modify behavior:
|
Return value
int
$sanitizer methods and properties
API reference based on ProcessWire core version 3.0.236