4

Читать данные с потока ввода

<?php
$st = fopen('php://stdin', 'r');
$line = trim(fgets($st));
echo "Input: ".$line;
-----------