How to do such thing in PHP? I have fond on this forum only solution for C# How to check if a string contains a word longer than 50 characters?
E.g. I have a string:
$string_to_check = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa rrrr fe we we hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhererererereerdfsdfsdfsdfsdfsdfsdfsdfsdfsdfttttfsd hhghhhhhhhhhhhhhhhhhh fd s hoefjsd k
bla bla bla";
And I want to make an if condition so when string contains a word that is 50 or more characters long return false; else return true;
Any advice how to solve this is appreciated.