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. 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. 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
Archived
This topic is now archived and is closed to further replies.