Is it recommended to use require instead of include when including files in PHP for better error handling?

Using `require` instead of `include` in PHP is recommended for better error handling because `require` will cause a fatal error and stop the script execution if the file cannot be included, while `include` will only produce a warning and continue executing the script. This helps in identifying and fixing issues with file inclusions more effectively.

<?php
require 'file-to-include.php';
// rest of the code
?>