Why is white space an issue in the first piece of code (particularly in regards to output buffering) but not an issue in the second piece of code:
May cause issues:
echo "</body>";
echo "</html>";
?>
//white space here
Does not cause issues:
?>
</body>
</html>
//white space here
The reason I'm asking is that it is perfectly valid to have white space at the end of HTML code and both code examples will place the white space after the closing </html>
tag.
Please do not say this is a duplicate of another page unless the other page gives a reason as to why the second example does not cause issues.