Built-In Namespace String
| Method Attributes | Method Name and Description |
|---|---|
|
split2(delimiter, max)
Split function where the 2nd argument is based on the PHP version.
|
Method Detail
{Array}
split2(delimiter, max)
Split function where the 2nd argument is based on the PHP version.
Defined in: ultrastar.js.
Defined in: ultrastar.js.
- Parameters:
- {String|Regexp} delimiter
- The String or RegExp used to split the string.
- {Integer} max Optional
- If specified, then only substrings up to limit are returned with the rest of the string being placed in the last substring.
- Returns:
- {Array} The array with the substrings of the string split along boundaries matched by
delimiter.