extract_variation9.phpt 303 B

1234567891011121314151617181920
  1. --TEST--
  2. Test extract() function (variation 9)
  3. --FILE--
  4. <?php
  5. /* Using Class and objects */
  6. echo "\n*** Testing for object ***\n";
  7. class classA
  8. {
  9. public $v;
  10. }
  11. $A = new classA();
  12. var_dump ( extract(get_object_vars($A),EXTR_REFS));
  13. echo "Done\n";
  14. ?>
  15. --EXPECT--
  16. *** Testing for object ***
  17. int(1)
  18. Done