Get the first n words from a String.



  • String subject - The String to extract from.
  • Number limit - A maximum of limit words will be extracted from the subject string.


  • String - The words extracted from subject.

Returns a String produced by extracting limit words from subject. A "word" is considered to be a sequence of letters or numbers, including international characters. Whitespace and punctuation characters split the words up, but will not increase the word count.

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