zend_thread_id

PHP 5, PHP 7, PHP 8
zend_thread_id - Returns a unique identifier for the current thread
Manual
Code Examples

zend_thread_id( ): int

This function returns a unique identifier for the current thread.

Parameters

This function has no parameters.

Return Values

Returns the thread id as an integer.

Notes

Note:

This function is only available if PHP has been built with ZTS (Zend Thread Safety) support and debug mode (--enable-debug).

Example of zend_thread_id

Show all examples for zend_thread_id

PHP Version:


Function zend_thread_id:

PHP Options and Information Functions

Most used PHP functions