stevehossy Posted March 4, 2009 Share Posted March 4, 2009 I need a php script that counts the number of words. This is to prevent a certain loop in my textbox that causes scrolling. What i want is to search the number of words used. For example $_POST['text'] if ($_POST['text'] < 5 words) { error } Link to comment https://forums.phpfreaks.com/topic/147978-how-to-count-words/ Share on other sites More sharing options...
rhodesa Posted March 4, 2009 Share Posted March 4, 2009 http://php.net/str_word_count Link to comment https://forums.phpfreaks.com/topic/147978-how-to-count-words/#findComment-776648 Share on other sites More sharing options...
stevehossy Posted March 4, 2009 Author Share Posted March 4, 2009 thank you so much! Link to comment https://forums.phpfreaks.com/topic/147978-how-to-count-words/#findComment-776652 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.