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

posix_ttyname

Description

The posix_ttyname of POSIX for PHP determines the terminal device name.

Syntax

posix_ttyname(
    resource|int $file_descriptor
): string|false

Parameters

file_descriptor

The file descriptor, which is expected to be either a file resource or an int. An int will be assumed to be a file descriptor that can be passed directly to the underlying system call.

Return

Returns a string of the absolute path of the file_descriptor on success, false on failure.