时间:2021-07-01 10:21:17 帮助过:9人阅读
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;
------解决方案--------------------