
Druckansicht von http://www.php-homepage.de/manual/mysqli.thread-id.php
mysqli::$thread_idmysqli_thread_id(PHP 5) mysqli::$thread_id -- mysqli_thread_id — Returns the thread ID for the current connection BeschreibungObjektorientierter Stil int $mysqli->thread_id;
Prozeduraler Stil 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.
Parameter-Liste
RückgabewerteReturns the Thread ID for the current connection. BeispieleBeispiel #1 $mysqli->thread_id example Objektorientierter Stil
<?phpProzeduraler Stil
<?phpDie obigen Bespiele erzeugen folgende Ausgabe: Error: MySQL server has gone away |