PHP - How to check if a string contains a word longer than 50 characters?

O Xabarin

New member
I would like to know if it is possible to check with php if a string of text contains one word that is longer than 50 characters, just because it would come out of the div since it would be too long, and have no spaces.

If it is possible, any ideas on how to fix this problem?
 
Back
Top