Hello; I send long texts into the database via a form which includes textareas. Then I want to get that content in a new file. However, there are very long lines which I can't limit either by table width or another method. I use <pre>...</pre> tags as well in the output file but that works as long as I manually break the lines while the text is still in the form, which is quite impractical as I paste the text into the textarea from another source, such as ms-word. Is there a method to limit the line lenght that is retrieved from the database?
Depends if theres a break in the words, I would just use wordwrap like above post said, or if there is space use nl2br Glen
string wordwrap ( string $str [, int $width = 75 [, string $break = "\n" [, bool $cut = false ]]] ) this line is suitable for auto