Foser Posted January 28, 2008 Share Posted January 28, 2008 Is there a function where i set the function to a string and say the string cannot be longer than 400 digits afte 400 digits it just gets cut off at the last word? thanks Quote Link to comment https://forums.phpfreaks.com/topic/88159-shortening-strings/ Share on other sites More sharing options...
mmarif4u Posted January 28, 2008 Share Posted January 28, 2008 strlen(); Quote Link to comment https://forums.phpfreaks.com/topic/88159-shortening-strings/#findComment-451048 Share on other sites More sharing options...
trq Posted January 28, 2008 Share Posted January 28, 2008 substr(). Quote Link to comment https://forums.phpfreaks.com/topic/88159-shortening-strings/#findComment-451049 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.