How can error reporting be enabled in PHP to help identify issues in the code?
Error reporting in PHP can be enabled by setting the `error_reporting` directive in the php.ini file or by using the `error_reporting` function in the PHP script itself. Setting error reporting to `E_ALL` will display all types of errors, warnings, and notices, helping to identify issues in the code.
// Enable error reporting
error_reporting(E_ALL);