数组转对象

$a = array(); //数组

$b = (object)$a; //对象

$a = ($object)array(); //定义空对象

 

posted @ 2017-07-28 17:42  惩罚之灵  阅读(162)  评论(0)    收藏  举报