<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.info.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.zend-thread-id.php',
    1 => 'zend_thread_id',
    2 => 'Liefert eine eindeutige ID f&uuml;r den aktuellen Thread',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'PHP-Optionen-/-Informationen-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.version-compare.php',
    1 => 'version_compare',
  ),
  'next' => 
  array (
    0 => 'function.zend-version.php',
    1 => 'zend_version',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/info/functions/zend-thread-id.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.zend-thread-id" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">zend_thread_id</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">zend_thread_id</span> &mdash; <span class="dc-title">Liefert eine eindeutige ID für den aktuellen Thread</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.zend-thread-id-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>zend_thread_id</strong></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Diese Funktion gibt eine eindeutige ID für den aktuellen Thread zurück.
  </p>
 </div>

 
 <div class="refsect1 parameters" id="refsect1-function.zend-thread-id-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">Diese Funktion besitzt keine Parameter.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.zend-thread-id-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt die Thread-ID als Integer zurück.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.zend-thread-id-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>zend_thread_id()</strong></span>-Beispiel</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$thread_id </span><span style="color: #007700">= </span><span style="color: #0000BB">zend_thread_id</span><span style="color: #007700">();<br /><br />echo </span><span style="color: #DD0000">'Der aktuelle Thread ist: ' </span><span style="color: #007700">. </span><span style="color: #0000BB">$thread_id</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Der aktuelle Thread ist: 7864</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.zend-thread-id-notes">
  <h3 class="title">Anmerkungen</h3>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <p class="para">
    Diese Funktion ist nur verfügbar, wenn PHP mit ZTS- (Zend Thread Safety)
    und Debug- (<code class="literal">--enable-debug</code>) Unterstützung kompiliert
    wurde.
   </p>
  </p></blockquote>
 </div>


</div><?php manual_footer($setup); ?>