PHP mysqli_thread_id() Function

PHP mysqli_thread_id() function returns the thread ID for the current connection.

Syntax

mysqli_thread_id() Function Parameter

ParameterDescription
connection :Required parameter. The MySQL connection to be used

mysqli_thread_id() Function Return Value

Return Values :Returns a buffered result object or FALSE if an error occurred.

mysqli_thread_id() Function Example