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? 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. Link to comment https://forums.phpfreaks.com/topic/179738-limit-string-by-words/#findComment-948321 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.