example.php 295 B

123456789101112131415
  1. <?php
  2. require __DIR__.'/../vendor/autoload.php';
  3. echo 'Say hello (visible): ';
  4. $answer = Seld\CliPrompt\CliPrompt::prompt();
  5. echo 'You answered: '.$answer . PHP_EOL;
  6. echo 'Say hello (hidden): ';
  7. $answer = Seld\CliPrompt\CliPrompt::hiddenPrompt();
  8. echo 'You answered: '.$answer . PHP_EOL;