Pdostatement Getattribute
# PDOStatement::getAttribute
[PHP PDO Reference](#)
PDOStatement::getAttribute β Retrieves a statement attribute (PHP 5 >= 5.1.0, PECL pdo >= 0.2.0)
* * *
## Description
### Syntax
mixed PDOStatement::getAttribute ( int $attribute )
Gets a statement attribute. Currently, there are no universal attributes, only driver-specific attributes:
* 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 Reference](#)
YouTip