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

search for in the

variant_abs> <com_release
[edit] Last updated: Fri, 17 May 2013

view this page in

com_set

(PHP 4)

com_set给 COM 组件的属性赋值

说明

Deprecated, use the OO syntax instead.

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

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

注释

Note: 此函数在 PHP 5 中不再存在. 你应该使用更自然的面向对象语法操作属性及方法。



add a note add a note User Contributed Notes com_set - [1 notes]
up
0
dan at kuykendall dot org
10 years ago
This should also work using the newer OOP style that is still undocumented.

<?php
$obj
= new COM('Some.app');
$obj->somevar = 'somevalue';
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites