so here is what i would love to be able to do..:
- take a string of text
- echo the first 200 characters
- stop at the first . or ? or ! after the first 200 characters
im using
echo (ereg(".{200}*[.?!]", $NEWS_BODY));
its not echoing anything on the page at all am i missing something??
please respond to shafen@mail.com if you can help thanks!