Goto main content

str_split

Convert a string to an array.

STR_SPLIT

NAME

str_split - Convert a string to an array.

SYNOPSIS

str_split(str,length)

PARAMETERS

str
The input string.
length
Maximum length of the chunk.

RETURN

Return the string in an ordered array according to the parameter provided.

EXAMPLES

in:  res=<{str_split("ONE SAMPLE",2)}>.
out: res=["ON","E ","SA","MP","LE"].

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

Written by Pusnei Sergey, <sergey@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.