Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<mysqli_stmt::$affected_rowsmysqli_stmt::attr_set>
^mysqli_stmtLast updated: Mon, 26 Oct 2026

mysqli_stmt::attr_get

mysqli_stmt_attr_get

(PHP 5, PHP 7, PHP 8)

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

Description

Object-oriented style

public function mysqli_stmt::attr_get(int $attribute): int

Procedural style

function mysqli_stmt_attr_get(mysqli_stmt $statement, int $attribute): int

Gets the current value of a statement attribute.

Parameters

statement

Procedural style only: A mysqli_stmt object returned by mysqli_stmt_init().

attribute

The attribute that you want to get.

Return Values

Returns the value of the attribute.


<mysqli_stmt::$affected_rowsmysqli_stmt::attr_set>
^mysqli_stmtLast updated: Mon, 26 Oct 2026