打个比方 数组对象 ->child(属性名)[] = 数据 就可以添加属性一个这样类似这样的array(模拟数据 [0] array( [id]=>1, child array( [id]=>1 ) ))