PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
hey.. my question is pretty simple..
i have user input for some text
what i want to do? for example when i have 10 chars in a line it will go down and will not ruin my page
not "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
but "aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa"
For wordwrap(), the first argument is what the user entered, the second argument is the width you want the string to be, the third argument is what to use as the newline character, and the last character tells wordwrap to cut the word at 10 characters.