|
PHP5中文手册
PDO->getAttribute()(PHP 5 >= 5.1.0, PECL pdo:0.2-1.0.3) PDO->getAttribute() — Retrieve a database connection attribute 说明PDO
mixed 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. 参数
返回值A successful call returns the value of the requested PDO attribute. An unsuccessful call returns null. 范例
Example#1 Retrieving database connection attributes
<?php |