Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PDOStatement::setAttribute

PDOStatement::setAttribute

PHP PDO Reference ManualPHP PDO Reference Manual

PDOStatement::setAttribute — Set a statement attribute (PHP 5 >= 5.1.0, PECL pdo >= 0.2.0)


Description

Syntax



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

Sets an attribute on the statement. Currently, there are no generic attributes to set, only driver-specific ones:


Return Value

Returns TRUE on success, or FALSE on failure.


PHP PDO Reference ManualPHP PDO Reference Manual