Does the error_reporting(E_ALL) function apply to the entire file or just the code within the PHP tags?
The error_reporting(E_ALL) function applies to the entire file, not just the code within the PHP tags. This means that all errors, warnings, and notices will be displayed for the entire script. To limit the error reporting to specific sections of code, you can use the error_reporting() function within those sections to set a different error reporting level.
// Set error reporting to display all errors
error_reporting(E_ALL);
// Your PHP code here
// This error reporting level will apply to all code within this file