======split====== Split a [[PTPScript:Types:String|String]] into pieces. \\ **Syntax** * ''[[PTPScript:Types:Array|Array]] split( [[PTPScript:Types:String|String]] subject [, [[PTPScript:Types:Mixed|Mixed]] separator [, [[PTPScript:Types:Number|Number]] limit ] ] )'' \\ **Parameters** * [[PTPScript:Types:String|String]] ''subject'' - The String to split. * [[PTPScript:Types:Mixed|Mixed]] ''separator'' - What to split ''subject'' on. * [[PTPScript:Types:String|String]] - ''subject'' will be split using the String as a separator. * [[PTPScript:Types:Number|Number]] - ''subject'' will be split into chunks of the length specified by the Number. * [[PTPScript:Types:Number|Number]] ''limit'' - The optional ''limit'' parameter is only in effect if ''separator'' is a String. If so, ''subject'' will be split into a maximum of ''limit'' elements, with the last element containing the remainder of the String. If ''limit'' is negative, all components except the last number specified by ''limit'' are returned. \\ **Result** * [[PTPScript:Types:Array|Array]] - The elements produced by splitting ''subject''. Returns an Array of Strings, produced by splitting ''subject'' on boundaries formed by ''separator'', or of length ''separator'' if ''separator'' is a Number.