how to prompt user for input in php

82

<?php
echo "What do you want to input? ";
$input = rtrim(fgets(STDIN));
echo "I got it:\n" . $input;

Comments

Submit
0 Comments