Sometimes there can be space characters before the <?php
at the top of the file. Or space characters after a closing ?>
at the end of the file.
The closing ?>
is not needed in PHP files. But anything before the opening <?php
, or after the not-needed ?>
closing will get rendered on the page.