RE: [PHP-DB] input statement in php
| From: | Daevid Vincent | Date: | Mon, 26 Jul 2010 18:48:47 +0000 |
| Subject: | RE: [PHP-DB] input statement in php | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-47278@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Bavithra R [mailto:bavithra.r@gmail.com]
> Sent: Monday, July 26, 2010 7:39 AM
> To: php-db@lists.php.net
> Subject: [PHP-DB] input statement in php
>
> hi friends..
>
>
> Is there any equivalent statement in php for "scanf" or
> "cin" in c or c++?
> That is without using html and creating forms.
>
>
> Thanks in advance
> regards
> --Bavithra.R
There unfortunately isn't any scanf() but if you're trying to get user
input on a CLI, then you can either use the argv/argc options or do
something like this tutorial does.
http://www.ehow.com/how_5321606_prompt-line-interface-using-php.html