Horde_Cli::readStdin PHP Method

readStdin() public method

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