$a = array(); //数组
$b = (object)$a; //对象
$a = ($object)array(); //定义空对象
数组转对象
原文:http://www.cnblogs.com/weih124/p/7251620.html