PHP有一个函数提取,它将像这样转换一个数组:
$array = array( 'var1' => 1,'var2' => 2 );
至:@H_301_4@
$var1 = 1; $var2 = 2;
现在,我需要相反,我有几个变量:@H_301_4@
$var3 = 'test'; $test = 'another'; $datax = 1;
需要是:@H_301_4@
$array = array( 'var3' => 'test','test' => 'another','datax' => 1 );