PDO (PHP Data Objects) is PHP's unified interface for accessing databases (MySQL, PostgreSQL, SQLite...). The same access code works with several engines, and PDO supports prepared statements and transactions.
Example
$pdo = new PDO($dsn, $user, $pass);