extract_variation1.phpt 321 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. Test extract() function (variation 1)
  3. --FILE--
  4. <?php
  5. $val = 4;
  6. $str = "John";
  7. var_dump($val);
  8. var_dump($str);
  9. /* Extracting Global Variables */
  10. var_dump(extract($GLOBALS, EXTR_REFS));
  11. var_dump($val);
  12. var_dump($str);
  13. echo "\nDone";
  14. ?>
  15. --EXPECTF--
  16. int(4)
  17. string(4) "John"
  18. int(%d)
  19. int(4)
  20. string(4) "John"
  21. Done