36
연관 배열의 끝에 요소를 추가하려고합니다.PHP의 연관 배열에 값 추가
예를 들어, 내 배열은
$test=Array ([chemical] => asdasd [chemical_hazards] => ggggg)
하고 내 결과는
$test=Array ([chemical] => asdasd [chemical_hazards] => ggggg [solution] => good)
당신이 어떻게 구현을 가르쳐 수 있어야한다?
$test = array('chemical' => 'asdasd', 'chemical_hazards' => 'ggggg'); //init
$test['solution'] = 'good';