Splitting at word count
| From: | H. Wade Minter | Date: | Thu, 25 Jan 2001 20:06:54 +0000 |
| Subject: | Splitting at word count | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-36691@lists.php.net to get a copy of this message | ||
-----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 after a certain number of
words?
Thanks,
Wade
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE6cIdgX5y4ZKLK2pMRAjOoAJ0RD43TCH7yVTLKhVjtsJ2mr/ZLMgCgmcz0
QHiQipt8ngHq7dnVdiQeHXY=
=PwwQ
-----END PGP SIGNATURE-----