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; 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. 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
Archived
This topic is now archived and is closed to further replies.