Comunitatea PHP Romania
 

 
readline

readline

(PHP 4 , PHP 5)

readline -- Reads a line

Description

string readline ( [string prompt])

This function returns a single string from the user. You may specify a string with which to prompt the user. The line returned has the ending newline removed. You must add this line to the history yourself using readline_add_history().

Exemplu 1. readline()

<?php
//get 3 commands from user
for ($i=0; $i < 3; $i++) {
        
$line = readline("Command: ");
        
readline_add_history($line);
}

//dump history
print_r(readline_list_history());

//dump variables
print_r(readline_info());
?>

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Membri recenti

Narco Narco
Botosani
Cristianhhr Cristianhhr
Otopeni, România
filla filla
nicoletta nicoletta
adina_m adina_m
uzzi uzzi
abordeaza abordeaza
ba3999 ba3999
teocudinti teocudinti
terbersa terbersa

Top membri

Pirahna Pirahna
la birou
carco carco
Bucuresti
Birkoff Birkoff
Bucuresti
Mascka Mascka
Braila
raul_ raul_
whooper whooper
Toronto ON
mihaitha mihaitha
Sibiu
gabysolomon gabysolomon
Bacau
oriceon oriceon
Constanta
garlicinicolae garlicinicolae

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Parteneriat

Copyright © 2001-2008 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink Personal Loans | Personal Finance | Loans | Car Accident Attorney Los Angeles | Myspace Layouts
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis