Latest web development tutorials

PDOStatement :: getAttribute

PHP PDO Reference Manual PHP PDO Reference Manual

PDOStatement :: getAttribute - retrieves a statement attribute (PHP 5> = 5.1.0, PECL pdo> = 0.2.0)


Explanation

grammar

mixed PDOStatement::getAttribute ( int $attribute )

Get a property statement. Currently, there is no common properties, only the drive-specific attributes:

  • PDO :: ATTR_CURSOR_NAME (Firebird and ODBC properties): Gets UPDATE ... WHERE CURRENT OF cursor name.

return value

Return the property value.


PHP PDO Reference Manual PHP PDO Reference Manual