array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'pdostatement.setattribute.php', 1 => 'PDOStatement::setAttribute', 2 => 'Set a statement attribute', ), 'up' => array ( 0 => 'class.pdostatement.php', 1 => 'PDOStatement', ), 'prev' => array ( 0 => 'pdostatement.rowcount.php', 1 => 'PDOStatement::rowCount', ), 'next' => array ( 0 => 'pdostatement.setfetchmode.php', 1 => 'PDOStatement::setFetchMode', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/pdo/pdostatement/setattribute.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

PDOStatement::setAttribute

(PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 0.2.0)

PDOStatement::setAttribute Set a statement attribute

Опис

public PDOStatement::setAttribute(int $attribute, mixed $value): bool

Sets an attribute on the statement. Currently, no generic attributes are set but only driver specific:

Note that driver specific attributes must not be used with other drivers.

Параметри

attribute

The attribute to modify.

value

The value to set the attribute, might require a specific type depending on the attribute.

Значення, що повертаються

Повертає true у разі успіху або false в разі помилки.

Прогляньте також