You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
600 B

27 years ago
27 years ago
27 years ago
27 years ago
  1. <?
  2. define("endl","\n");
  3. class foobar {
  4. function foobar() {
  5. $this->initialized = 1;
  6. }
  7. };
  8. class barbara extends foobar {
  9. };
  10. $name = "foobar";
  11. $foo = new $name; // or die("Unable to construct foobar\n");
  12. //print $foo->initialized;
  13. $boo = new barbara;
  14. print get_class($foo).endl;
  15. print get_parent_class($foo).endl;
  16. print get_class($boo).endl;
  17. print get_parent_class($boo).endl;
  18. print method_exists($foo,"foobar").endl;
  19. print method_exists($boo,"foobar").endl;
  20. print method_exists($boo,"barbara").endl;
  21. //$word = new COm("word.application");
  22. //$word->visible = true;
  23. //sleep(5);
  24. //$word->quit();