phasync
ProcessInterface / getStream

Method

ProcessInterface::getStream

Returns the stream of a standard descriptor, for stream_select(), phasync::readable() and the like.

Description#

public ProcessInterface::getStream(
    int $fd
): mixed

Parameters#

$fd int
ProcessInterface::STDIN, STDOUT or STDERR

Return values#

Null for any other number mixed