怎么用数组去接受这一系列参数

如何用数组去接受这一系列参数?
用jquery异步向B页面传递一系列参数:
 $.get('get.php?a="+ Math.random()', {name: $(this).val()}, function(data) {
  alert(unescape(data));
});
其中$(this).val()为一组数据,其值为1,2,3,4 通过jquery 的$.get方法向B页面传这组数据,如何在B页面用数组接收这组数据并用数组的索引显示出来,比如echo $name[1]就可以打印出2。

------解决方案--------------------
$_GET['name'] = '1,2,3,4';

$arr = explode(',', $_GET['name']);
print_r($arr);

//输出结果
Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
)