Page 1 of 1

Display set number of characters

Posted: Mon Mar 13, 2006 10:00 am
by GeXus
Does any know how I would display x number of characters? Say for example a description, I want to only display 100 characters max then have like "... more" type of deal..

Thanks!

Posted: Mon Mar 13, 2006 11:46 am
by feyd
strlen() to see if it's over the "limit", substr() to snip the string.