downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

zend_version> <zend_logo_guid
[edit] Last updated: Fri, 17 May 2013

view this page in

zend_thread_id

(PHP 5)

zend_thread_idDevuelve un identificador único del thread actual

Descripción

int zend_thread_id ( void )

Esta función devuelve un identificador único del thread actual.

Valores devueltos

Devuelve thread id en formato integer.

Ejemplos

Ejemplo #1 Ejemplo de zend_thread_id()

<?php
$thread_id 
zend_thread_id();

echo 
'El thread id actual es: ' $thread_id;
?>

El resultado del ejemplo sería algo similar a:

El thread actual es: 7864

Notas

Nota:

Esta función solo está disponible en PHP compilado con soporte ZTS (Zend Thread Safety) y modo debug (--enable-debug).



add a note add a note User Contributed Notes zend_thread_id - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites