Read stdin line by line - php -
i need read stdin php. need read first line > save variable > print variable > read second line > save same variable (rewrite old content) > print - read third line > ... > end of inserted text.
example of imput data:
u u b h > b 1 :h1 u c h b > c 1 :h2 u d
can me?
here example how this. php standard input?
here http://www.php.net/manual/en/features.commandline.io-streams.php php manual manipulating i/o streams
if have further questions don't hessitate ask
Comments
Post a Comment