mysql_thread_id Return the current thread ID &mysql.alternative.note; mysqli_thread_id &reftitle.description; intmysql_thread_id resourcelink_identifierNULL 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. &reftitle.parameters; &mysql.linkid.description; &reftitle.returnvalues; The thread ID on success&return.falseforfailure;. &reftitle.examples; <function>mysql_thread_id</function> example ]]> &example.outputs.similar; &reftitle.seealso; mysql_ping mysql_list_processes