PHP » GoLang |
login |
register |
about
|
GoLang mysqli::$thread_id
request it (501)
GoLang replacement for PHP's mysqli::$thread_id
[edit | history]
mysqli::$thread_idmysqli_thread_id(PHP 5, PHP 7) mysqli::$thread_id -- mysqli_thread_id — Returns the thread ID for the current connection DescriptionObject oriented style int $mysqli->thread_id;
Procedural style The mysqli_thread_id() function returns the thread ID for the current connection which can then be killed using the mysqli_kill() function. If the connection is lost and you reconnect with mysqli_ping(), the thread ID will be other. Therefore you should get the thread ID only when you need it.
Parameters
Return ValuesReturns the Thread ID for the current connection. ExamplesExample #1 $mysqli->thread_id example Object oriented style
<?php Procedural style
<?php The above examples will output: Error: MySQL server has gone away |
more
Recently updated
more
Most requested
more
Last requests
|