PDOStatement :: setAttribute
PDOStatement :: setAttribute - Set a statement attribute (PHP 5> = 5.1.0, PECL pdo> = 0.2.0)
Explanation
grammar
bool PDOStatement::setAttribute ( int $attribute , mixed $value )
To set a statement attribute. Currently, there is no common property can be set only driver specific attributes:
PDO :: ATTR_CURSOR_NAME (Firebird and ODBC characteristics): Set the cursor name to UPDATE ... WHERE CURRENT OF.
return value
Successful return TRUE, or on failure returns FALSE.