Given a potentially multi-dimensional array, return a flat 1-dimensional array
Available since version 3.0.160.
Usage
// basic usage
$array = $sanitizer->flatArray(array $value);
// usage with all arguments
$array = $sanitizer->flatArray(array $value, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
value | array | |
options (optional) | array |
|
Return value
array
$sanitizer methods and properties
API reference based on ProcessWire core version 3.0.236