Warning: Undefined offset: 3
Pessoal, Tô com problema nesse código: "Warning: Undefined offset: 3 and Undefined offset: 5, nesta linha (36): $cd [$ i] [$ id] [$ j]. =" $ Row ";
Já tentei com isset mas não dei jeito. Sei que este erro pode ocorrer com array vazio mas o array tem dados.
O call stack do PHP tá apontando pro $j :
$j =G:\XAMPP\htdocs\guardiao\inventario\Stackoverflow_1.php:36:int 3
$match = G:\XAMPP\htdocs\guardiao\inventario\Stackoverflow_1.php:36: array (size=0) - empty
Alguém consegue me ajudar?
}elseif(isset($id)){ // ignore all file header content
If (($row_previous == true)and ($row_ob !== true)){
++$j; //increment its index to insert variable value created for the additional lines
$row="(Ob) ". (trim($row)); //create pre value variable
$row_ob=true;
$cd[$i][$id][$j].="$row "; // concatenate to last element to new -linha (36)
}else{
$cd[$i][$id][$j].=" $row"; // concatenate to last element
}
}Discussão (4)
Carregando comentários...