I have a script that outputs results into an array via a foreach loop:
foreach ($export AS $exp) {
$_SESSION['export'][] = array($exp->label, $exp->pos_X, $exp->pos_Y);
}
It works great however the count starts with 0 and results look odd:
0 Value1 34 52
1 Value2 -12 66
2 ValueX 20 47
3 ValueZ -22 94
I'd like it to be
1 Value1 34 52
2 Value2 -12 66
3 ValueX 20 47
4 ValueZ -22 94
How can I fix that?
$SESSION['export'](why is it important what it "looks like"?) or somewhere that its value is displayed to the user?