mysql_thread_id

 int mysql_thread_id ([ resource $link_identifier ] ) 

説明

Retrieves the current thread ID. If the connection is lost, and a reconnect with mysql_ping() is executed, the thread ID will change. This means only retrieve the thread ID when needed.

戻り値

The thread ID on success or FALSE on failure.