1
I’m having a problem up to half "beast" 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 of it, php complains undefined index
I’m accessing it as follows
$vetor['produto']
$vetor['peso']
What would be the right way to access it?
I can barely see your movements, I was with the ideone so ready here kkkk
– user28595
@Diegofelipe hahaha, I even found it funny to see this question unanswered for 40 minutes rs
– rray
I was, but before I took a beating from the ideone (I switched to wrong language and I thought the hiccup was wrong too kkk), but the answer was going to be the same as yours
– user28595