PageRenderTime 52ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/slow/keyset/unset.php

http://github.com/facebook/hiphop-php
PHP | 17 lines | 14 code | 3 blank | 0 comment | 0 complexity | ebef24887e4051f5fc2528aae68cfc77 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. function main() {
  3. $e = keyset[];
  4. $one = keyset[1];
  5. $two = keyset[1, "1"];
  6. $e[] = 1;
  7. $e[] = "1";
  8. $one[] = "1";
  9. unset($e[1]);
  10. unset($one[1]);
  11. unset($two["1"]);
  12. var_dump($e, $one, $two);
  13. }
  14. main();