samoht Posted October 31, 2009 Share Posted October 31, 2009 hello all, I was wonder if there is a function to limit a string by the number of words instead of characters? Quote Link to comment https://forums.phpfreaks.com/topic/179738-limit-string-by-words/ Share on other sites More sharing options...
Daniel0 Posted October 31, 2009 Share Posted October 31, 2009 You can check the number of words using str_word_count. Quote Link to comment https://forums.phpfreaks.com/topic/179738-limit-string-by-words/#findComment-948321 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.