Get the ID generated from the previous INSERT operation

# mysqli_stmt::$insert_id

# mysqli_stmt_insert_id

(PHP 5, PHP 7, PHP 8)

mysqli_stmt::$insert_id -- mysqli_stmt_insert_id — Get the ID generated from the previous INSERT operation

### Description

Object-oriented style

int|string $mysqli_stmt->insert_id;

Procedural style

mysqli_stmt_insert_id(mysqli_stmt `$statement`): int|string
Warning

This function is currently not documented; only its argument list is available.

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open