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::statmysqli::store_result>
^mysqliLast updated: Mon, 26 Oct 2026

mysqli::stmt_init

mysqli_stmt_init

(PHP 5, PHP 7, PHP 8)

mysqli::stmt_init -- mysqli_stmt_init — Initializes a statement and returns an object for use with mysqli_stmt_prepare

Description

Object-oriented style

public function mysqli::stmt_init(): mysqli_stmt|false

Procedural style

function 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

mysql

Procedural style only: A mysqli object returned by mysqli_connect() or mysqli_init()

Return Values

Returns a mysqli_stmt object.

See Also


<mysqli::statmysqli::store_result>
^mysqliLast updated: Mon, 26 Oct 2026