parseAsArray()
parseAsArray(mixed $var, string $delimiter = '[\s,]+') : array|\Traversable
Resolve the given value as a collection of values.
If the given value is a string, it will be split.
Parameters
mixed | $var | An argument to split. |
string | $delimiter | The boundary string. |
Throws
- \InvalidArgumentException
If the value cannot be parsed into an array.