php8.5
Home/ Manual/ sqlite3 / sqlite3stmt/ SQLite3Stmt::close

SQLite3Stmt::close

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Closes the prepared statement

Description

SQLite3Stmt::close(): true

Closes the prepared statement.

Note

Note that all SQLite3Results that have been retrieved by executing this statement will be invalidated when the statement is closed.

Parameters Parameters

Return Values

Always

Errors/Exceptions

An Error is thrown if the method is called on an uninitialized object.

Changelog

VersionDescription
8.1.0This method now throws an Error exception if the object is not correct initialized. Previously, it returned false.

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