How to scan the user-entered value ?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
How to scan the user-entered value ?

like, we have "scanf()" in 'C'.......

Re: How to scan the user-entered value ?

the lovely and talented dgs broadcast on comp.lang.php:

Quoted text here. Click to load it

You can fscanf(STDIN) or fgets(STDIN) in the CLI.  See chapter 43 "Using PHP
from the Command Line" in the manual.  There may be more stuff you can do
with the curses functions, but they are poorly (i.e. not at all) documented.

Of course you cannot detect browser events except via GET or POST (in one
form or another) --- which I mention just in case you have no idea what PHP
is or how HTTP works.

Lars Eighner     < <
                         Countdown: 442 days to go.
                    What do you do when you're debranded?

Site Timeline