readline_basic.phpt 229 B

1234567891011121314151617
  1. --TEST--
  2. readline(): Basic test
  3. --CREDITS--
  4. Milwaukee PHP User Group
  5. #PHPTestFest2017
  6. --EXTENSIONS--
  7. readline
  8. --FILE--
  9. <?php
  10. var_dump(readline('Enter some text:'));
  11. ?>
  12. --STDIN--
  13. I love PHP
  14. --EXPECTF--
  15. %Astring(10) "I love PHP"