PHP 5.6.0RC3 is available

com_set

(PHP 4)

com_setAsigna un valor a una propiedad de un componente COM

DescripciĆ³n

Obsoleto, use en su lugar la sintaxis OO.

Ejemplo #1 Sintaxis OO

<?php
// haga esto
$obj->propiedad $propiedad;
// en vez de esto:
com_set($obj'propiedad'$propiedad);
?>

Notas

Nota: This function does not exist in PHP 5; instead, you should use the regular and more natural OO syntax to access properties or call methods.

add a note add a note

User Contributed Notes 1 note

up
0
dan at kuykendall dot org
11 years ago
This should also work using the newer OOP style that is still undocumented.

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