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

search for in the

variant_abs> <com_release
Last updated: Fri, 03 Oct 2008

view this page in

com_set

(PHP 4)

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

説明

非推奨です。かわりにオブジェクト指向の構文を使用しましょう。

例1 オブジェクト指向の構文

<?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 04: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> <com_release
Last updated: Fri, 03 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites