As in this?
Code:
Line 1
Line 2
Line 3
But it shows up as Line 1Line 2Line 3?
Just replace your enters with a <br />, standing for Line Break

, hope that's what you need
PS Welcome to Webmaster-talk! I hope you found what you were looking for!
OR If you're making a user input box where they can type line breaks into a box, or som3ehow get this script below to work for everything, go for it. However, it is a good idea to just use <br />s regularly.
Code:
<?php
$text = "You should eat fruits, vegetables, and fiber every day.";
$from = array("\n");
$to = array("<br />");
echo str_replace($from, $to, $text);
?>
As a side note, you can change the $variable names (the things with the dollar signs) to whatever you want, 'text', 'to', and 'from' aren't key, you can make them bob, joe, and sally :P
Now what that script does it take everything from $from and replace it with $to, using PHP's built-in function called 'str_replace'. '\n' Is a 'newline', meaning every time a user enters a
new line, it will actually just render a \n in the box. You don't actually ever see this in the source or in the box itself, but it's there
