Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: com_set - Manual
[go: Go Back, main page]

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

search for in the

variant_abs" width="11" height="7"/> <com_release
Last updated: Mon, 05 Feb 2007

view this page in

com_set

(No version information available, might be only in CVS)

com_set — COM コンポーネントのプロパティに値を代入する

説明

void com_set ( resource com_object, string property, mixed value )

com_object が指す COM コンポーネントの property の値を設定します。成功時に 新規に設定された値、エラーの場合に FALSE を返します。

例 388. com_set() を使用せず、かわりにオブジェクト指向の構文を使用する

<?php
// こちらを使用します
$obj->property = $value;
// こちらは推奨しません
com_set($obj, 'property', $value);
?>

注意: この関数は PHP 5 には存在しません。そのかわりに、標準的でより自然な オブジェクト指向の構文を使用してプロパティへのアクセスやメソッドの コールを行うべきです。



add a note add a note User Contributed Notes
com_set
dan at kuykendall dot org
16-Aug-2002 11:38
This should also work using the newer OOP style that is still undocumented.

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

variant_abs" width="11" height="7"/> <com_release
Last updated: Mon, 05 Feb 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites