PageRenderTime 55ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/test/subjects/parsing/empty.php

http://phc.googlecode.com/
PHP | 21 lines | 15 code | 6 blank | 0 comment | 2 complexity | a86ec67a1dee541bf809e8b5fe4bf708 MD5 | raw file
Possible License(s): GPL-2.0, 0BSD, BSD-3-Clause, Unlicense, MPL-2.0-no-copyleft-exception, LGPL-2.1
  1. <?php
  2. if( empty($x) )
  3. {
  4. echo "x is empty";
  5. }
  6. else
  7. echo "x is not empty";
  8. $x = 7;
  9. if( empty($x) )
  10. {
  11. echo "x is empty";
  12. }
  13. else
  14. echo "x is not empty";
  15. ?>