Split a String into pieces.



  • String subject - The String to split.
  • Mixed separator - What to split subject on.
    • String - subject will be split using the String as a separator.
    • Number - subject will be split into chunks of the length specified by the 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.


  • 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.

ptpscript/functions/split.txt · Last modified: 2007/01/24 10:15
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki