/ / 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());
?php / /Lit 3 commandes de l'utilisateur for ($i=0; $i 3; $i++) {$line = readline("Commande: "); readline_add_history($line);} / /liste l'historique print_r(readline_list_history()); / /liste les variables print_r(readline_info());?