PDO
PHP 手册

PDO::setAttribute

(PHP 5 >= 5.1.0, PECL pdo >= 0.1.0)

PDO::setAttribute Set an attribute

说明

bool PDO::setAttribute ( int $attribute , mixed $value )

Sets an attribute on the database handle. Some of the available generic attributes are listed below; some drivers may make use of additional driver specific attributes.

返回值

如果成功则返回 TRUE,失败则返回 FALSE


PDO
PHP 手册