|
PDO::getAttributeRetrieve a database connection attribute Beschreibung
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. Parameter-Liste
RückgabewerteA successful call returns the value of the requested PDO attribute. An unsuccessful call returns null. Beispiele
Beispiel #1 Retrieving database connection attributes
<?phpSiehe auch
|