Home >Backend Development >PHP Tutorial >对象 转 数组 不会了

对象 转 数组 不会了

WBOY
WBOYOriginal
2016-06-23 13:51:07879browse


回复讨论(解决方案)

get_object_vars -- 返回由对象属性组成的关联数组

谢谢谢谢谢谢谢谢谢谢

涨知识了,版主。

 if(is_object($array)) {  
        $array = (array)$array;  
  }

学习了,版主

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