PDOStatement::getAttribute

PHP PDO 参考手册PHP PDO Reference Manual

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.


PHP PDO 参考手册PHP PDO Reference Manual

Other Extensions