对象 转 数组 不会了

WBOY
Release: 2016-06-23 13:51:07
Original
847 people have browsed it


回复讨论(解决方案)

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

谢谢谢谢谢谢谢谢谢谢

涨知识了,版主。

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

学习了,版主

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