<br>\n would make a line break in the actual html code.
If your entire PHP sciript is devoid of \n, the entire HTML code will be on one line.
For an example, go to www.allmovie.com, do a search and click on one of the results. View the source of that result, and you will see all their HTML is on the first line.
Placing \n and \t in your code has no effect on what the user sees on the webpage, but makes your source code more readable.
echo "</td></tr></table>";
echo "</body></html>;
will look like
</td></tr></table></body></html> in your HTML source.
but
echo "</td></tr></table>\n";
echo "</body></html>;
will return
</td></tr></table>
</body></html>
in your source code.