Return given values that that also exist in $allowedValues whitelist
Usage
// basic usage
$array = $sanitizer->options(array $values);
// usage with all arguments
$array = $sanitizer->options(array $values, array $allowedValues = []);
Arguments
Name | Type(s) | Description |
---|---|---|
values | array | |
allowedValues (optional) | array | Whitelist of option values that are allowed |
Return value
array
$sanitizer methods and properties
API reference based on ProcessWire core version 3.0.236