array加入新阵列如何宣告?
$data=Array ('id' => 123,'name' => name);
Salin selepas log masuk
用array_push会出错,请问要怎么宣告?
------解决思路----------------------$a = Array ('id' => 123,'name' => 'name');<br />$a['type'] = 1;
Salin selepas log masuk
------解决思路----------------------$data['type'] = 1;