PHP 配列出力の問題
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 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 } <br><font color="#e78608">------解決策---------</font><br>$this-> を 2 行目の前に置きます;output .=削除して見てください。 <br>foreach($list as $value) { <br> $this->output .= $value['q_username'];//a<br> print_r($value); // b<br> } <br>echo $this->出力; <br><font color="#e78608">------解決策---------</font><br>