I have a loop like

```
foreach ($_GET as $name => $value) {
    echo "$value\n";
}

```

And I want to add a comma in between each item so it ends up like this.

```
var1, var2, var3

```

Since I am using `foreach` I have no way to tell what iteration number I am on.

How could I do that?