com_propput
void com_propput(resource identifier, string property_name, mixed property_value)
identifier | Identifier from com_load() |
property_name | Name of the property to be set |
property_value | Value the property is to be set to |
Assigns a value to a property.
Returns:
TRUE on success; FALSE on error
Description:
Assigns a value to a property. This is the same as a variable assignment in normal PHP code. com_propset() and com_set() are aliases for this function. In ASP, the code in the following example would be written as com.PropertyVal = val.
Version:
Existing since version 3.0.3
Example:
Assign a value to a property
$val = "A Value"; $com = new COM("ObjectName.ClassName"); $ret = com_propput($com, "PropertyVal", $val); |
Get PHP Functions Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.