In Python, you can add instruction on user input like this;
foo = input('Enter a number:')
Is there any way to do the same thing in PHP?
In Python, you can add instruction on user input like this;
foo = input('Enter a number:')
Is there any way to do the same thing in PHP?
The PHP readline()
function does this:
<?php
$foo = readline('Enter a number:');
echo $foo;
?>
Read more about it here.