php数组输出的问题
foreach($list as $value){ $this->output .= $value['q_username'];//a $this->output .= print_r($value);// b}
foreach($list as $key=>$value){ $this->output .= $value['q_username'];//a $this->output .= print_r($value);// b}
[解决办法]
把第二行前面的 $this->output .=去掉看看。
foreach($list as $value) {
$this->output .= $value['q_username'];//a
print_r($value); // b
}
echo $this->output;
[解决办法]