Login   Register  
PHP Classes
elePHPant
Icontem

File: clitest.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gaspar  >  PHP CLI Input  >  clitest.php  >  Download  
File: clitest.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP CLI Input
Process keys pressed by the user in the shell
Author: By
Last change:
Date: 1 year ago
Size: 155 bytes
 

Contents

Class file image Download
<?php

require_once('CLIInput.class.php');

echo 
"Tell me something: ";
$input = new CLIInput();
$text $input->read();
echo 
"\n\nRESULT: ".$text."\n";
?>