I am building some html code dynamically but would like the source to look nicer then what it is. I believe the \n is supossed to do a line break similar to the <br /> but oin the raw html only and not the ooutputted display on the page.

I have this and its puking \n to the page.
PHP Code:
while ($cat $db->fetch_array($cats))
{
  
$mycats .= '\n    <tr>\n'.$cat;

But the "\n" isnt working and pukes to the screen.