What are alternative methods to access an Access database in PHP without using ODBC?

One alternative method to access an Access database in PHP without using ODBC is to use the PDO (PHP Data Objects) extension with the `odbc` driver. This allows you to connect to the Access database using PDO and execute queries without relying on ODBC.

try {
    $pdo = new PDO("odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=path/to/your/database.accdb");
    
    $stmt = $pdo->query("SELECT * FROM your_table");
    
    while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
        // Process each row
    }
    
    $pdo = null; // Close the connection
} catch (PDOException $e) {
    echo "Error: " . $e->getMessage();
}