Is there a PHP script that can spot long individual words?
Posted: Wed Nov 18, 2015 10:09 am
We are getting a lot of user comments where users are enter thousands of !!!!!!!!!!!!!!!! in their comments.
While we are not making them live, it is causing havoc with the screen to check for the comments.
So is there a simple way to find the "longest word" in a string, and count how many characters it is. Thus stopping it from being posted if it is over say, 20 characters....??
While we are not making them live, it is causing havoc with the screen to check for the comments.
So is there a simple way to find the "longest word" in a string, and count how many characters it is. Thus stopping it from being posted if it is over say, 20 characters....??