split

split ( string textToExplode , string|default:',' _separator ) : array

Explode elements of a string into an array

Example


unsplited = "https://www.idia-tech.com/split.html"
console(split(unsplited,"/")) //-> [https:, , www.idia-tech.com, split.html]

Parameters

textToExplode

_separator (optional)