how to request user input in php
snippet in php

how to request user input in php

user7063

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