I have an array that holds a number of arrays. I access them in turn e.g.
print_r($orderData[0]) and the output is:
Array (
  [201] => Array (
    [name] => SuperMarket One
    [type] => line_item
    [item_meta] => Array (
      [_qty] => Array (
        [0] => 1
      )
    )
  )
)
My issue is, I can't seem to access anything e.g. print_r($orderData[0]['name']) gives me:
Notice: Undefined index: name in /Path
Likewise, I can't use print_r($orderData[0][0]) etc.
I must be missing something quite obvious here.
 
     
     
    