Dane Posted December 6, 2007 Share Posted December 6, 2007 Hey guys, Im not sure on how to do this. Basically when someone posts a comment on my website, for example "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" all one word.. it breaks up my website. How would i go about breaking that up so my website doesnt break up? Thanks again guys Quote Link to comment Share on other sites More sharing options...
PHP_PhREEEk Posted December 6, 2007 Share Posted December 6, 2007 Well, strlen will test it to see if it exceeds what you want to allow, but how you want it broken up then is the next question... PhREEEk Quote Link to comment Share on other sites More sharing options...
kishan Posted December 6, 2007 Share Posted December 6, 2007 use wordwrap in php or in html use the attribute word-break=break-all to break it to the width specified Quote Link to comment Share on other sites More sharing options...
Dane Posted December 6, 2007 Author Share Posted December 6, 2007 Thanks, i ended up using wordwrap Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.