posix_isatty

 bool posix_isatty ( int $fd ) 

説明

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

戻り値

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