comunic/developer/vendor/seld/cli-prompt/res/example.php
2016-11-19 12:08:12 +01:00

16 lines
295 B
PHP

<?php
require __DIR__.'/../vendor/autoload.php';
echo 'Say hello (visible): ';
$answer = Seld\CliPrompt\CliPrompt::prompt();
echo 'You answered: '.$answer . PHP_EOL;
echo 'Say hello (hidden): ';
$answer = Seld\CliPrompt\CliPrompt::hiddenPrompt();
echo 'You answered: '.$answer . PHP_EOL;