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.. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/176478-solved-display-string-length/#findComment-930258 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.