Re: input statement in php

From: Date: Tue, 27 Jul 2010 10:46:40 +0000
Subject: Re: input statement in php
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-47279@lists.php.net to get a copy of this message
On 26 July 2010 15:38, Bavithra R <bavithra.r@gmail.com> wrote: > 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. WOW. Completely surprised by the two responses that were given. <?php while ($userinfo = fscanf(STDIN, "%s\t%s\t%s\n")) { print_r($userinfo); } ?> STDIN is a predefined resource, so no need to fopen()/fclose() it. Hope this helps. Regards, Richard Quadling.

« previous php.db (#47279) next »