<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.stream.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.stream-isatty.php',
    1 => 'stream_isatty',
    2 => 'Check if a stream is a TTY',
  ),
  'up' => 
  array (
    0 => 'ref.stream.php',
    1 => 'Stream-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.stream-is-local.php',
    1 => 'stream_is_local',
  ),
  'next' => 
  array (
    0 => 'function.stream-notification-callback.php',
    1 => 'stream_notification_callback',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/stream/functions/stream-isatty.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.stream-isatty" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">stream_isatty</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.2.0, PHP 8)</p><p class="refpurpose"><span class="refname">stream_isatty</span> &mdash; <span class="dc-title">Check if a stream is a TTY</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.stream-isatty-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>stream_isatty</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$stream</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Determines if stream <code class="parameter">stream</code> refers to a valid terminal type device.
   This is a more portable version of <span class="function"><a href="function.posix-isatty.php" class="function">posix_isatty()</a></span>, since it works on Windows systems too.
  </p>
 </div>

 
 <div class="refsect1 parameters" id="refsect1-function.stream-isatty-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">stream</code></dt>
    <dd>
     <p class="para">
      
     </p>
    </dd>
   
  </dl>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.stream-isatty-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt bei Erfolg <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück. Bei einem Fehler wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben.
  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-function.stream-isatty-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>stream_isatty()</strong></span> example</strong></p>
    <div class="example-contents"><p>
     This command can be used to determine if a standard output / standard error stream is redirected to a file.
    </p></div>
    <div class="example-contents"><div class="shcode"><pre class="shcode">php -r &quot;var_export(stream_isatty(STDERR));&quot;</pre>
</div></div>

    <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie:</p></div>
    <div class="example-contents screen"><br />
     true<br />
    </div>
    <div class="example-contents"><div class="shcode"><pre class="shcode">php -r &quot;var_export(stream_isatty(STDERR));&quot; 2&gt;output.txt</pre>
</div></div>

    <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie:</p></div>
    <div class="example-contents screen"><br />
     false<br />
    </div>
   </div>
   </p>
 </div>

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