|
PHP5中文手册
mysqli_thread_idmysqli->thread_id(PHP 5) mysqli->thread_id — Returns the thread ID for the current connection 说明Procedural style:
int mysqli_thread_id
( mysqli $link
)
Object oriented style (property): mysqli
int$thread_id;
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.
返回值Returns the Thread ID for the current connection. 范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php 上例将输出:
|