I have a multi-dimensional array. Using a for function, I would like to display the information inside the array. This means using a variable $i for the first index of the array, which I think is causing the problem.
I am getting the error message:
Undefined offset: 2 Note, that the number changes depending on the value of $i.
The code I am using is:
$created = $results[$i]['data'];
But I get the above error when I echo that information inside the for loop.
Is this because you can't use variables as indexes for arrays?