Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

stream_isatty

Description

The stream_isatty of Stream for PHP check if a stream is a TTY.

Syntax

stream_isatty ( resource $stream ) : bool

Parameters

stream

The stream resource

Return

Returns TRUE on success or FALSE on failure.

Examples

1

<?

$filename = "stream_isatty.txt";
$mode = "r";

$handle = fopen($filename, $mode);

    $return = stream_isatty($handle);

    var_export($return);

fclose($handle);

?>
false
HomeMenu