PageRenderTime 43ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/good/tests/output/ob_get_clean_basic_002.php

http://github.com/facebook/hiphop-php
PHP | 15 lines | 8 code | 3 blank | 4 comment | 0 complexity | 65f80a023d00bfb0ba46699b6e6ddbe5 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  1. <?hh
  2. /*
  3. * proto bool ob_get_clean(void)
  4. * Function is implemented in main/output.c
  5. */
  6. <<__EntryPoint>> function main(): void {
  7. ob_start();
  8. echo "Hello World";
  9. $out = ob_get_clean();
  10. $out = strtolower($out);
  11. var_dump($out);
  12. }