ez.no / exponential / documentation / reference / template operators / strings / explode
$input_string|explode( separator )
| Name | Type | Description | Required |
|---|---|---|---|
| separator | string | Where to split. | no |
an array of strings.
The explode operator will return an array of strings. Each element in the array will be a substring of the input_string formed by splitting it on boundaries defined by the separator string. Explode will also accept an array as input. Look at the explode operator within the arrays category for more info about using explode with arrays.
{"All-your-base-are-belong-to-us!"|explode("-")}
returns the following array of strings:
("All","your","base","are","belong","to","us!")
Comments