Answers for "get input in php"

PHP
2

how to request user input in php

<?php
echo "What do you want to input? ";
$input = rtrim(fgets(STDIN));
echo "I got it:\n" . $input;
Posted by: Guest on August-13-2020
1

get input data in php

<?php
// open it in cmd
// go to file path 
// cmd: php file_name
$a =(int)readline("Enter any value");
$b=0;
// echo $a;
for($i=0;$i<$a;$i++)
{
    echo $i;
    
}
?>
Posted by: Guest on September-06-2021

Browse Popular Code Answers by Language