Maison >développement back-end >tutoriel php >array加入新阵列如何宣告?
$data=Array ('id' => 123,'name' => name);
你臆造出的新名词,有谁能懂?
目前要加新的阵列值上去
原本:
Array ('id' => 123,'name' => name);
Array ('type' => 1);
Array ('id' => 123,'name' => name,'type' => 1);
$a = Array ('id' => 123,'name' => 'name');$a['type'] = 1;
$data['type'] = 1;