coupe-r Posted November 23, 2011 Share Posted November 23, 2011 Hi All, If someone types in my textarea without any hard returns, it echos the entire text on a single line, which expands my site very very far and screws up the layout. how can I echo the text but limit the number of characters per line before I insert my own line break? The code is just: echo $message; Quote Link to comment https://forums.phpfreaks.com/topic/251656-how-to-echo-text-on-multiple-lines/ Share on other sites More sharing options...
trq Posted November 23, 2011 Share Posted November 23, 2011 wordwrap. Quote Link to comment https://forums.phpfreaks.com/topic/251656-how-to-echo-text-on-multiple-lines/#findComment-1290645 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.