Home > PHP > Function > POSIX > posix_isatty()

posix_isatty()

posix_isatty - Determine if a file descriptor is an interactive terminal

Syntax

bool posix_isatty (int $fd)

Arguments

  • fd - The file descriptor.

Description

Determines if the file descriptor fd refers to a valid terminal type device.

Version

PHP 4, 5

Return value

Returns TRUE if fd is an open descriptor connected to a terminal and FALSE otherwise.