I have a half-beast problem here.
I have the following array
array(1) {
[0]=>
array(7) {
["id"]=>
string(1) "6"
["produto"]=>
string(1) "7"
["peso"]=>
string(1) "1"
["comprimento"]=>
string(2) "16"
["largura"]=>
string(2) "15"
["altura"]=>
string(1) "5"
["diametro"]=>
string(1) "0"
}
}
But every time I try to access something from it, php claims undefined index
I'm accessing as follows
$vetor['produto']
$vetor['peso']
What would be the correct way to access it?