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.

31 lines
615 B

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