mysql_thread_id()

It returns the current thread ID

Example

<?php
mysql_connect(“localhost”, “root”, “phpcode”);
$tables = mysql_list_tables(“database_name”);
echo mysql_thread_id();
?>

Output

1097

Share