I\'m trying to get the twelve ids that this structure shows:
stdClass Object
(
[checkins] => stdClass Object
(
[count] => 12
You cannot access object members via the array subscript operator [].
You have to use the -> operator:
$x = new StdClass();
$x->member = 123;
In your case you'll have to use a mixture, since you have an object ($checkins) with a member ($items) which is an array, which contains additional objects.
$a1[] = $checkins->items[$i]->venue->id;