this function takes the first x words or paragraphs from a long text and displays it as teaser with a "read more" link underneath.

download options for string handling / summarize article

you can download the source as PHP file,

open the file as plain text in a new window or

get the code in a textarea to copy it.