Jump to content

How to echo text on multiple lines?


coupe-r

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.