mysql_thread_id

Example

 int mysql_thread_id ([ resource $link_identifier ] ) 

Description

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.

Return Values

The thread ID on success or FALSE on failure.