I want to write a PHP script that I can use from the command line. I want it to prompt and accept input for a few items, and then spit out some results. I want to do this in
The I/O Streams page from the PHP manual describes how you can use STDIN to read a line from the command line: