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 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(); 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(). Link to comment https://forums.phpfreaks.com/topic/88159-shortening-strings/#findComment-451049 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.