|
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 ValuesA successful call returns the value of the requested PDO attribute. An unsuccessful call returns null. Examples
Example #1 Retrieving database connection attributes
<?php See Also
|