php foreach array alpha beta gamma as env urlstring myarray env echo h

1
2
3
4
5
6
7
<?php
foreach (array('alpha', 'beta', 'gamma') as $env) {
$urlstring .= 'myarray[]='.$env.'&';
}
echo '<a href="./array.php?'.$urlstring.'">test</a>';
var_dump($_GET['myarray']);