PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

com_invoke> <com_get_active_object
Last updated: Sun, 25 Nov 2007

view this page in

com_get

(PHP 4)

com_get — 获取 COM 组件的属性值 [被废弃]

描述

mixed com_get ( resource $com_object , string $property )

返回由 com_object 所引用的 COM 对象的 property 属性值,出错则返回 FALSE

Example#1 不要使用 com_get() ,使用 OO 语法代替

<?php
// do this
$var $obj->property;
// instead of this:
$var com_get($obj'property');
?>

Note: 本函数在 PHP 5 中不存在,应该使用常规的并更自然的面向对象语法来访问属性或调用方法。



add a note add a note User Contributed Notes
com_get
There are no user contributed notes for this page.

com_invoke> <com_get_active_object
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites