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;
}
精彩评论