ob_get_clean_basic_002.phpt 285 B

1234567891011121314151617181920
  1. --TEST--
  2. Test basic behaviour of ob_get_clean()
  3. --FILE--
  4. <?php
  5. /*
  6. * proto bool ob_get_clean(void)
  7. * Function is implemented in main/output.c
  8. */
  9. ob_start();
  10. echo "Hello World";
  11. $out = ob_get_clean();
  12. $out = strtolower($out);
  13. var_dump($out);
  14. ?>
  15. --EXPECT--
  16. string(11) "hello world"