php8.5
Home/ Manual/ mysqli / mysqli_stmt/ mysqli_stmt::close

mysqli_stmt::close

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Closes a prepared statement

Description

Oop

mysqli_stmt::close(): true

Procedural

mysqli_stmt_close(mysqli_stmt $statement): true

Closes a prepared statement. mysqli_stmt_close() also deallocates the statement handle. If the current statement has pending or unread results, this function cancels them so that the next query can be executed.

Parameters

Return Values

Always

Changelog

VersionDescription
8.0.0This function now always returns true. Previously it returned false on failure.

See Also

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