Visible = 1;$word->Documents->Add();$word->S"/> Visible = 1;$word->Documents->Add();$word->S">

Home  >  Article  >  Backend Development  >  在php中如何知道com类上面的所有方法?

在php中如何知道com类上面的所有方法?

WBOY
WBOYOriginal
2016-06-13 13:12:341174browse

在php中怎么知道com类下面的所有方法??
$word = new COM("word.application") or die("Unable to instanciate Word");
$word->Visible = 1;
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");


比如说以上代码Visible,Documents,Selection,这些方法(我是新手,不知道这种表述对不对),我想知道这个类下面的所有方法,应该怎么得到?比如像数组那个直接打印出来,有方法吗

------解决方案--------------------
com_print_typeinfo

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn