PDOStatement::getAttribute
PDOStatement::getAttribute — Retrieves a statement attribute (PHP 5 >= 5.1.0, PECL pdo >= 0.2.0)
Description
Syntax
mixed PDOStatement::getAttribute ( int $attribute )
Gets an attribute of a statement. Currently, there are no generic attributes, only driver-specific ones:
- PDO::ATTR_CURSOR_NAME (Firebird and ODBC specific): Gets the cursor name for UPDATE ... WHERE CURRENT OF.
Return Value
Returns the attribute value.
Other Extensions
PHP PDO Reference Manual