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
| Version | Description |
|---|---|
| 8.0.0 | This function now always returns true. Previously it returned false on failure. |