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 } Quote Link to comment Share on other sites More sharing options...
rhodesa Posted March 4, 2009 Share Posted March 4, 2009 http://php.net/str_word_count Quote Link to comment Share on other sites More sharing options...
stevehossy Posted March 4, 2009 Author Share Posted March 4, 2009 thank you so much! Quote Link to comment 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.