Horde_Cli::readStdin PHP Метод

readStdin() публичный Метод

Reads everything that is sent through standard input and returns it as a single string.
public readStdin ( ) : string
Результат string The contents of the standard input.
    public function readStdin()
    {
        $in = '';
        while (!feof(STDIN)) {
            $in .= fgets(STDIN, 1024);
        }
        return $in;
    }