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

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

WBOY
Release: 2016-06-13 11:51:28
Original
1032 people have browsed it

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 />
Copy after login

Related labels:
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template