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

### 说明

面向对象风格

int|string $mysqli_stmt->insert_id;

过程化风格

function mysqli_stmt_insert_id(mysqli_stmt `$statement`): int|string
警告

本函数还未编写文档，仅有参数列表。

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