$sanitizer→textArray()
Sanitize given value to array of text strings
One use case is if if the array might have objects in it and you want them converted to text for a normalized array without surprises.
Available since version 3.0.256.
Usage
// basic usage
$array = $sanitizer->textArray(mixed $value);
// usage with all arguments
$array = $sanitizer->textArray(mixed $value, array $options = []);Arguments
| Name | Type(s) | Description |
|---|---|---|
$value | mixed | |
$options (optional) | array |
|
Return value
array
$sanitizer methods and properties
API reference based on ProcessWire core version 3.0.257