RE: [PHP] Display only so many characters

2002-11-05 Thread Jon Haworth
Hi Stephen, I've seen this on a lot of news sites and such. How can I display only so many characters, then put a ... to show that it's continued? ?php $story = a really really really really long string; $limit = 10; // how many chars to display echo substr($story, 0, $limit). ...; ?

Re: [PHP] Display only so many characters

2002-11-05 Thread Tom Rogers
Hi, Wednesday, November 6, 2002, 3:21:03 AM, you wrote: S I've seen this on a lot of news sites and such. How can I display only so many characters, then put a ... to show that it's continued? S Thanks, S Stephen Craton S http://www.melchior.us S Life is a gift from God. Wasting it is like