first

Get the first n elements from a String.


Syntax


Parameters

  • String subject - The String to extract from.
  • String separator - What to use as the boundary between elements in subject. This defaults to the space character.
  • Number limit - The subject string will be split into a maximum of limit elements. If limit is negative, all components except the last number specified by limit are returned.


Result

  • String - The elements extracted from subject.

Returns a String produced by extracting limit elements from subject on boundaries formed by separator.

ptpscript/functions/first.txt · Last modified: 2007/02/25 22:04 by dan
 
 
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki