Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to prompt user for input in php

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

PREVIOUS NEXT
Code Example
Php :: laravel image validate 
Php :: php server sent events 
Php :: part of url php 
Php :: laravel/ui for laravel 7 
Php :: get public_html directory php 
Php :: php typecast to int 
Php :: php if $_post 
Php :: symfony call service in controller 
Php :: show alert in php 
Php :: create migration laravel 
Php :: File Reading Modes PHP 
Php :: print array on php 
Php :: convert all text in php to uppercase 
Php :: offset codeigniter 3 
Php :: php array filter 
Php :: javascript date to php date 
Php :: php catch all exceptions 
Php :: php remove html tag 
Php :: ent_quotes in php 
Php :: php json_encode utf8 
Php :: laravel take value from different array by key 
Php :: php extensions for apache2 
Php :: laravel handle queryexception 
Php :: laravel convert eloquent collection to collection 
Php :: date format change in laravel blade 
Php :: magento 1.9 print blank page error 
Php :: phpspreadsheet set cell by column and row 
Php :: laravel validation unique email except self 
Php :: laravel validation decimal 
Php :: if else if ternary php 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =