(PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 0.1.0)
Represents a connection between PHP and a database server.
$dsn,$username = null,$password = null,$options = null$dsn,$username = null,$password = null,$options = null$query, ?int $fetchMode = PDO::FETCH_COLUMN, int $colno): PDOStatement|false$query,$fetchMode = PDO::FETCH_CLASS,$classname,$constructorArgs| Version | Description |
|---|---|
| 8.5.0 | Driver-specific constants of the PDO class have been deprecated in favor of the equivalent constants of the driver-specific subclasses (Pdo\Dblib, Pdo\Firebird, Pdo\Mysql, Pdo\Odbc, Pdo\Pgsql, Pdo\Sqlite). |
| 8.4.0 | The class constants are now typed. |