Input/Output Learning Mode

How does one access standard input/output and error streams in PHP?