Documentation Home
Connectors and APIs Manual
Download this Manual

Connectors and APIs Manual  /  ...  /  mysqli_stmt::attr_get, mysqli_stmt_attr_get

7.3.9.2 mysqli_stmt::attr_get, mysqli_stmt_attr_get

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

Description

Object oriented style

public int mysqli_stmt::attr_get(int attribute);

Procedural style

int mysqli_stmt_attr_get(mysqli_stmt statement,
                         int attribute);

Gets the current value of a statement attribute.

Parameters

stmt

Procedural style only: A statement identifier returned by mysqli_stmt_init.

attribute

The attribute that you want to get.

Return Values

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