How can the "Fatal error: Cannot redeclare class Database" issue be resolved in PHP?

The "Fatal error: Cannot redeclare class Database" issue occurs when a class is being declared more than once in a PHP script. To resolve this issue, you can use the `class_exists` function to check if the class has already been defined before declaring it.

if (!class_exists('Database')) {
    class Database {
        // Class code here
    }
}