![]() |
![]() |
$str.splitSplits a string to an array |
|||
Usage | |||
|
|||
Description | |||
Splits the <data> string by <separator> and returns an array of substrings. <flags> may be a combination of the characters 's', 'w', 'r' and 'n'. If s is specified, <separator> matching is case sensitive, otherwise is case insensitive. If w is specified, <separator> is treated as a wildcard-type regular expression (with * and ? wildcars). If r is specified, <separator> is treated as a extended-type regular expression (with character classes, special escapes etc..). If both w and r are specified w takes precedence. If none of w and r are specified <separator> is treated as a simple string to be matched. If 'n' is specified then eventual empty fields are discarded. If <maxfield> is specified then at most <maxfields> items are returned in the array (i.e. the last item may be not splitted completly). |
|||
Syntax Specification | |||
|
|||
Examples | |||
|