/test/subjects/parsing/isset.php

http://phc.googlecode.com/ · PHP · 21 lines · 16 code · 5 blank · 0 comment · 3 complexity · 8d0952d8d133bf4cbf6ab62fb45d9602 MD5 · raw file

  1. <?php
  2. $x = 10;
  3. $y = 20;
  4. if(isset($x))
  5. {
  6. echo "x is set\n";
  7. }
  8. if(isset($x, $y))
  9. {
  10. echo "x, y set.\n";
  11. }
  12. if(isset($z))
  13. {
  14. echo "z is set";
  15. }
  16. ?>