MDanz Posted October 4, 2009 Share Posted October 4, 2009 like say i want to only display 4 letters... so i have a word like "beginning", i only want to display first 4 letters, then after three full stops... so it displayes "begi..." i know how to do something similar with wordwrap but not what i'm looking for.. Link to comment https://forums.phpfreaks.com/topic/176478-solved-display-string-length/ Share on other sites More sharing options...
Daniel0 Posted October 4, 2009 Share Posted October 4, 2009 Use a combination of strlen, if statements and substr. Link to comment https://forums.phpfreaks.com/topic/176478-solved-display-string-length/#findComment-930258 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.