PHP

1
2
3
4
5
6
7
8
9
10
<?php 
$array = array(
'数组名称1' => '数组值1',
'数组名称2' => '数组值2'
);
foreach($array as $test1 => $test2){
$a[]=$test1; //递增输入键值
}
print_r ($a); //查看数组a
?>