3 개의 배열을 인수로 사용하고 전달 된 3 개의 배열 값을 기반으로 배열을 만드는 방법이 있습니다. 이 정보는 전자 메일 방법으로 전송되어 전자 메일을 보냅니다. 지금까지 제대로 작동했습니다. 문제는 내 키 - 값 쌍입니다. 일부 값은 인쇄되지 않으며 이유가 확실하지 않습니다. 일러스트레이션을 위해 관련없는 코드를 생략했습니다. 보세요 ...배열 정보 인쇄
public function SendToISS($user,$questions,$scores_translated) {
$userinfo = array("First Name:"=>$user['first'],
"Last Name:"=>$user['last'],
"Organization:"=>$user['org'],
"State:"=>$user['state'],
"Zip:"=>$user['zip'],
"Phone:"=>$user['phone'],
"Email:"=>$user['email'],
""=>"",
"Assessment Answers:"=>"",
"Assessment One:"=>$questions[0],
" ".$user['first']."'s Answer:"=>$scores_translated[0],
"Assessment Two:"=>$questions[1],
" ".$user['first']."'s Answer:"=>$scores_translated[1],
"Assessment Three:"=>$questions[2],
" ".$user['first']."'s Answer:"=>$scores_translated[2],
"Assessment Four:"=>$questions[3],
" ".$user['first']."'s Answer:"=>$scores_translated[3],
"Assessment Five:"=>$questions[4],
" ".$user['first']."'s Answer:"=>$scores_translated[4]
);
}
이것은 내 이메일 상자의 결과입니다. scores_translated 배열은 첫 번째 값만 인쇄 한 다음 중지합니다.
First Name: Steven
Last Name: Pepe
Organization: Laerdal
State: New York
Zip: 12590
Phone: 8452977770
Email: [email protected]
Assessment Answers:
Assessment One: Administer multiple assessments of student progress throughout the class.
Steven's Answer: The program does not perform this strategy.
Assessment Two: Establish a passing standard for psychomotor and critical thinking skills that is above the minimum competency level.
Assessment Three: The program does not perform this strategy.
Assessment Four: Assure instructional consistency when preparing students for the NREMT-B exam.
Assessment Five: Provide immediate feedback for written, practical evaluations to students.
_what_가 없음을 지정하십시오. –
@SergiuParaschiv 나는 "Steven 's Answer :"라는 질문을 한 번씩 볼 것으로 예상합니다. 나는 왜 그렇게 인쇄되지 않는지 즉시 알 수 없다. – zebediah49
누락 된 부분은 "평가 1 :"이후의 나머지 키 - 값 쌍입니다. 그들은 또한 점수를 포함해야합니다. 이메일 결과에서이를 볼 수 있습니다. – stevenpepe