<?php
echo "<div>\n";
echo "line one \n line two \n";
echo "</div>";
?>
the output would be
line one line two
but if you check the source, it would be
<div>
line one line two
</div>
if you want to output a newline in your html, you will have to use
in your php code:
<?php
echo "<div>\n";
echo "line one line two \n";
echo "</div>";
?>
the output would be:
line one
line two
and the source would be
<div>
line one
line two
</div>