[Solved] My loop produces the same vaues each time – why?


You need to add a line as an element to an array.

So, you need not array(), but array_push().

int array_push ( array &$array , mixed $value1 [, mixed $... ] )

or in your case,

array_push($lineGroup, $line);

also, you can use

$lineGroup[] = $line;

solved My loop produces the same vaues each time – why?