box-o-sand/php-practice/web/html/wikipedia-tutorial/io.php

10 lines
106 B
PHP

<?php
$stdin = fopen('php://stdin', 'r');
$mystring = fgets($stdin);
print "\$mystring=$mystring";
?>