从网上查到的方法是 用get_object_vars 把类类型转换成数组 然后在用foreach 遍历即可 $array = get_object_vars($test); $json= '[{"id":"1","name":"\u5f20\u96ea\u6885","age":...
I have used these methods by seen following links: () ; ...
一、json_encode()