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;
    }