How can error_reporting be used to troubleshoot issues with including PHP documents?

To troubleshoot issues with including PHP documents, you can use the error_reporting function to display any errors or warnings that may be occurring during the include process. By setting the error_reporting level to E_ALL, you can ensure that all errors, warnings, and notices are displayed, helping you identify and resolve any issues with the included PHP documents.

<?php
error_reporting(E_ALL);

include 'your_php_file.php';
?>