|
PDO::getAttributeRetrieve 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. Parameters
Return Values
A successful call returns the value of the requested PDO attribute.
An unsuccessful call returns Errors/Exceptions
PDO::getAttribute may throw a PDOException
when the underlying driver does not support the requested Examples
Example #1 Retrieving database connection attributes
See Also
|