Used to get the current value of a statement attribute (original) (raw)

mysqli_stmt::attr_get

mysqli_stmt_attr_get

(PHP 5, PHP 7)

mysqli_stmt::attr_get -- mysqli_stmt_attr_get — Used to get the current value of a statement attribute

Description

Object oriented style

public mysqli_stmt::attr_get ( int $attr ) : int

mysqli_stmt_attr_get ( mysqli_stmt $stmt , int $attr ) : int

Parameters

stmt

Procedural style only: A statement identifier returned by mysqli_stmt_init().

attr

The attribute that you want to get.

Return Values

Returns FALSE if the attribute is not found, otherwise returns the value of the attribute.