maxudaskin Posted March 11, 2009 Share Posted March 11, 2009 I want to create a news column in a website, but limit the number of characters to 500. Does anyone have a function (developed by PHP, yourself, or anyone) that can do this? I'd rather not make one just to realize that there is one that comes standard with the PHP framework. Quote Link to comment https://forums.phpfreaks.com/topic/148878-solved-substr-function-without-cutting-off-a-word/ Share on other sites More sharing options...
trq Posted March 11, 2009 Share Posted March 11, 2009 Take a look at the user comments in the substr man page. Quote Link to comment https://forums.phpfreaks.com/topic/148878-solved-substr-function-without-cutting-off-a-word/#findComment-781733 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.