怎么更新数组里面的一个值?

#1 superhos

如题$this->newsinfo
我要更新newsinfo里面某一索引的值 该怎么做?

2011-09-14 14:33:03

#2 jake

$a = $this->newsinfo;
$a['我是索引'] = 新值;
$this->newsinfo = $a;

2011-09-14 21:42:13

#3 superhos

回复 2 jake


   原来如此~这么小白的问题~麻烦jake哥了~感谢感谢~~~~

2011-09-14 22:05:03