开发者

Print array returns "Array"

开发者 https://www.devze.com 2023-03-03 10:32 出处:网络
When I try to print this : $erros[] = array($divErro1,$divErro2); foreach($erros as $testeste){ $testeste = array($erros);

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

精彩评论

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