PHP mysqli_kill() Function
Example
Return the current connection's thread ID, then kill the connection:
Definition and Usage
The mysqli_kill() function asks the server to kill a MySQL thread specified by processid the specified parameter.
Syntax
mysqli_kill(
connection,processid
)
;
| Parameters | Description |
|---|---|
| connection | Required. Specifies the MySQL connection to use. |
| processid | Required. The mysqli_thread_id() thread ID returned by. |
Technical Details
| Return Value: | Returns TRUE on success, FALSE on failure. |
|---|---|
| PHP Version: | 5+ |
PHP MySQLi Reference Manual