php8.5
Home/ Manual/ mysqli / mysqli/ mysqli::stmt_init

mysqli::stmt_init

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Initializes a statement and returns an object for use with mysqli_stmt_prepare

Description

Oop

mysqli::stmt_init(): mysqli_stmt|false

Procedural

mysqli_stmt_init(mysqli $mysql): mysqli_stmt|false

Allocates and initializes a statement object suitable for mysqli_stmt_prepare().

Note

Any subsequent call to any mysqli_stmt method will fail until mysqli_stmt_prepare() is called.

Parameters

Return Values

Returns a mysqli_stmt object.

See Also

Source: reference/mysqli/mysqli/stmt-init.xml · from the official PHP manual (php/doc-en)