Home  >  Article  >  Backend Development  >  php5.4.16版本com_set()函数改为啥了

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

WBOY
WBOYOriginal
2016-06-13 11:51:281000browse

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

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

Statement:
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