What are the potential pitfalls of having whitespace or empty lines before the PHP opening tag?

Having whitespace or empty lines before the PHP opening tag can cause unwanted output to be sent to the browser, which can lead to headers already sent errors. To solve this issue, ensure that there is no whitespace or empty lines before the PHP opening tag <?php.

&lt;?php
// Your PHP code goes here