연결 배열에 항목 추가 //go through each question foreach($file_data as $value) { //separate the string by pipes and place in variables list($category, $question) = explode('|', $value); //place in assoc array $data = array($category => $question); print_r($data); } 이것은 데이터의 가치를 대체하기 때문에 작동하지 않습니다.단, 각 루프에 연관값을 추가하려면 어떻게 해야 합니까? $file_data는 동적 크기를 가진 데이터 배열입니다.간단하게 할 수 있습니다. $data += array($category => $q..