Next: lowercase
Prev: crypt
explode(string) explode(string, separator, [want-blanks])This function returns a list of the words in string. If the string separator is specified, then it is used as the word separator; otherwise a space (
" ") is used. If the optional
argument want-blanks is specified and is true, explode()
will include zero-length words in the returned list; otherwise, it will
not.
Examples:
explode(" foo bar baz")
=> ["foo", "bar", "baz"]
explode("foo:bar:baz", ":")
=> ["foo", "bar", "baz"]