joshgarrod Posted June 8, 2009 Share Posted June 8, 2009 Hi, I am returning a list of records from a database and I need to shorten the description to say 20 characters and the add at the end "... more>>", eg. "This is the page where... more>>". This is probably really simple but I have never needed it before and can't find it anywhere in the search engines. Thanks V much in advance Quote Link to comment https://forums.phpfreaks.com/topic/161406-solved-display-x-amount-of-characters-then/ Share on other sites More sharing options...
joshgarrod Posted June 8, 2009 Author Share Posted June 8, 2009 eventually found it the PHP manual, thanks anyway. Just incase it helps anyone else: substr($message, start, length); Quote Link to comment https://forums.phpfreaks.com/topic/161406-solved-display-x-amount-of-characters-then/#findComment-851762 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.