What are the potential issues with having multiple DOCTYPE declarations in a PHP document?

Having multiple DOCTYPE declarations in a PHP document can cause conflicts and render the page incorrectly. To solve this issue, it is important to have only one DOCTYPE declaration at the beginning of the HTML document.

<?php
// Correct way to include a single DOCTYPE declaration in a PHP document
echo "<!DOCTYPE html>";
?>