PDO::getAttribute
PDO::getAttribute
(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)
PDO::getAttribute — Retrieve a database connection attribute
Description
public mixed PDO::getAttribute ( int $attribute )
This function returns the value of a database connection attribute. To retrieve PDOStatement attributes, refer to PDOStatement::getAttribute().
Note that some database/driver combinations may not support all of the database connection attributes.