RE: [PHP] Splitting at word count

2001-01-26 Thread Dustin Butler
> I'm doing a page where the front page will show "news" > stories. What I'd > like is if the story is longer than X words/chars/etc, the > index page will > show the first X words, then a link for the full story. > > Does anyone have a good idea on how to split after a certain number of > wor

Re: [PHP] Splitting at word count

2001-01-26 Thread Jose Casal-Gimenez
> I'm doing a page where the front page will show "news" > stories. What I'd > like is if the story is longer than X > words/chars/etc, the index page will > show the first X > words, then a link for the full story. > > Does anyone have a good idea on how to split after a > certain number of

Re: [PHP] Splitting at word count

2001-01-26 Thread Richard Lynch
> I'm doing a page where the front page will show "news" stories. What I'd > like is if the story is longer than X words/chars/etc, the index page will > show the first X words, then a link for the full story. > > Does anyone have a good idea on how to split after a certain number of > words? 5

Re: [PHP] Splitting at word count

2001-01-26 Thread Christian Reiniger
On Thursday 25 January 2001 21:06, H. Wade Minter wrote: > Does anyone have a good idea on how to split after a certain number of > words? Attached is code that semi-intelligently limits strings to a certain number of characters. Perhaps that helps you. -- Christian Reiniger LGDC Webmaster (ht

[PHP] Splitting at word count

2001-01-25 Thread H. Wade Minter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm doing a page where the front page will show "news" stories. What I'd like is if the story is longer than X words/chars/etc, the index page will show the first X words, then a link for the full story. Does anyone have a good idea on how to split