What could be causing incorrect characters to appear in the first line of PHP code when using Mozilla Firefox?

The issue of incorrect characters appearing in the first line of PHP code when using Mozilla Firefox could be due to a character encoding mismatch. To solve this issue, you can explicitly declare the character encoding in the PHP file using the header() function.

<?php
header('Content-Type: text/html; charset=utf-8');
// Your PHP code here
?>