MySQL and PHP
Copyright 1997-2021 the PHP Documentation Group.
mysqli_stmt::attr_get
mysqli_stmt_attr_get
Used to get the current value of a statement attribute
Object oriented style
public int mysqli_stmt::attr_get(int attr);
Procedural style
int mysqli_stmt_attr_get(mysqli_stmt stmt,
int attr);
Gets the current value of a statement attribute.
stmt
Procedural style only: A statement identifier returned
by
mysqli_stmt_init
.
attr
The attribute that you want to get.
Returns false
if the attribute is not
found, otherwise returns the value of the attribute.