php5.4.16版本com_set()函数改成啥了

WBOY
Release: 2016-06-23 14:00:37
Original
974 people have browsed it

低版本php在com组件里,有个com_set()函数,但php5以后就没有这个函数了,请问这个函数改成什么函数了?如何使用?谢谢!


回复讨论(解决方案)

// do this $obj->property = $value;//现在com直接赋值就可以了 等同于com_set // instead of this: com_set($obj, 'property', $value);//上面的 $obj->property = $value同样可以实现com_set的功能
Copy after login

com_invoke($obj,"FETCH"); //取得数值

这句话在php5里,改如何写啊?

com_invoke($obj,"FETCH"); //取得数值

这句话在php5里,改如何写啊?
就是对象的获取属性的方式啊 $obj->FETCH;

谢谢你的耐心解答

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!