0

Im getting a weird error I got an Undefined index even it is defined

This is the structure of my $list

enter image description here

Then in my PHP I did this

foreach($list as $k => $v){
  if($v['quantity-2'] > 0){
    //bla bla bla
  }
}

But I got an error Undefined index: quantity-2

What possibly was wrong?

0 Answers0