PDOStatement::setAttribute
(PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 0.2.0)
PDOStatement::setAttribute —
Set a statement attribute
Description
public function PDOStatement::setAttribute(
int $attribute,
mixed $value):
bool
Note that driver specific attributes
must not be used
with other drivers.
Parameters
attribute
-
The attribute to modify.
value
-
The value to set the attribute,
might require a specific type depending on the attribute.
Return Values
Returns true on success or false on failure.