开发者

Print array returns "Array"

When I try to print this :

   $erros[] = array($divErro1,$divErro2);    
     foreach($erros as $testeste){
     $testeste = array($erros);

using print_r i get the correct values, but with that marker of array "Array ( [0] => Array ( [0] => ...."

How can i get 开发者_运维问答it to print without that marks? I tried echo but it returns the word "Array"


Your foreach doesn't look right, try this:

foreach($erros as $testeste) {
     echo $testeste;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜