PHP PDOStatement:: getAttribute Explanation

  • 2021-11-14 05:08:06
  • OfStack

PDOStatement::getAttribute

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

Description

Grammar


mixed PDOStatement::getAttribute ( int $attribute )

Gets 1 attribute of the statement. At present, there are no general attributes, only driver-specific attributes:

PDO:: ATTR_CURSOR_NAME (Firebird and ODBC features): Gets the cursor name of UPDATE... WHERE CURRENT OF.

Return value

Returns the property value.

Summarize


Related articles: