PHP Classes

File: clitest.php

Recommend this page to a friend!
  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: Update of clitest.php
Date: 2 months 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";
?>