comunic/developer/vendor/seld/cli-prompt/res/example.php

16 lines
295 B
PHP
Raw Normal View History

2016-11-19 11:08:12 +00:00
<?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;