Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

very long "words"

Status
Not open for further replies.

Neutje

Programmer
Sep 19, 2001
38
BE
anyone know how to deal with something like this:

????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????

cause on some of my forums/comment systems users like to do that kinda stuff and that messes up my tables...

Greetz
Neutje
 
try to 'explode' the text on spaces, so you have only the words. Then loop through the words, checking their length (with the strlen function). That will do the trick.

Hope to have been of some assistance,
Stijn Teijssen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top