PDA

View Full Version : How to cut something off after a certain number of chars..?


Sean
12-29-2001, 01:06 AM
I am just an questioning maching today, aren't I? ;)

Ok, well. I want to know how you cut some off...For example... I have this:


The dog went this way, the cat went that way. Then they both went the other way, and made their to to their houses. :D

Could it cut it like this:

The dog went this way, the cat we.....

Or, after so many characters?

Thanks,
Sean :D

Mark Hensler
12-29-2001, 05:25 AM
<a href="http://www.php.net/manual/en/function.substr.php" target="_blank">substr()</a>

Sean
12-29-2001, 11:59 AM
Thanks, just what i needed. :D

Murder-HE
01-04-2002, 06:16 PM
Usefull when you display the latest threads on a Non-vB Page :)