Quick Chunk_Split question

Soldato
Joined
11 Apr 2003
Posts
4,210
Location
Notts
Hi all im using this function in php, to validate my guestbook, so if someone enters a realy long word, my page does not break, I have tried using wordwrap, however with this my page breaks, but I just noticed a problem, my comments are being split, even if there are spaces:

Comment: Seems like someone has put a lot of effor t into creating this site! Good job, hop e you keep it updated...

Is there a way to make it so it only splits, if the word has no spaces in? E.G If its a normal sentance display correctly, but if it contains a word that is over 60 chars to split after 60 chars...

Thanks! :D
 
Back
Top Bottom