Input/output streamsThe CLI SAPI defines a few constants for I/O streams to make programming for the command line a bit easier.
Given the above, you don't need to open e.g. a stream for stderr yourself but simply use the constant instead of the stream resource: php -r 'fwrite(STDERR, "stderr\n");'
|