SirChick Posted January 13, 2008 Share Posted January 13, 2008 I am wondering what can be done with strings when a user inputs either a stupid amount of grammer mistakes or spams the place by putting long words like: spaaaaaaaaam (times 100). As this is only one word and there are no spaces it will stretch my table column. How ever if there is a space it can wrap to a new line but does not if its one word. So is there a way i can create the feature so it does: text text tex- | t | so it will add a " - " symbol to represent it continues on the next line ? Quote Link to comment https://forums.phpfreaks.com/topic/85872-solved-question-about-string-inputs/ Share on other sites More sharing options...
pocobueno1388 Posted January 13, 2008 Share Posted January 13, 2008 You can look into the wordwrap() function. Quote Link to comment https://forums.phpfreaks.com/topic/85872-solved-question-about-string-inputs/#findComment-438363 Share on other sites More sharing options...
monkeytooth Posted January 13, 2008 Share Posted January 13, 2008 you could also try to limit the amount of text thats allowed to be input per post.. Quote Link to comment https://forums.phpfreaks.com/topic/85872-solved-question-about-string-inputs/#findComment-438364 Share on other sites More sharing options...
SirChick Posted January 13, 2008 Author Share Posted January 13, 2008 you could also try to limit the amount of text thats allowed to be input per post.. I have.. but if its just one word and no spaces it wont wrap the word lol Quote Link to comment https://forums.phpfreaks.com/topic/85872-solved-question-about-string-inputs/#findComment-438366 Share on other sites More sharing options...
SirChick Posted January 13, 2008 Author Share Posted January 13, 2008 poco thankyou will have a try at that! Quote Link to comment https://forums.phpfreaks.com/topic/85872-solved-question-about-string-inputs/#findComment-438368 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.