iterator.explode ViewHelper <vhs:iterator.explode>
¶
Explode ViewHelper
Explodes a string by $glue.
Arguments¶
content¶
- DataType
string
- Required
false
- Description
String to be exploded by glue
glue¶
- DataType
string
- Default
','
- Required
false
- Description
String "glue" that separates values. If you need a constant (like PHP_EOL), use v:const to read it.
limit¶
- DataType
mixed
- Default
9223372036854775807
- Required
false
- Description
If limit is set and positive, the returned array will contain a maximum of limit elements with the last element containing the rest of string. If the limit parameter is negative, all components except the last-limit are returned. If the limit parameter is zero, then this is treated as 1.
as¶
- DataType
string
- Required
false
- Description
Template variable name to assign; if not specified the ViewHelper returns the variable instead.