Zend
ZF-100-500 · Question #140
Which of the following code snippets will you use to cr eate a transport while considering the following PHP code segment? <?php require_once 'Zend/Mail.php'; require_once…
The correct answer is B. $transport = new. See the full explanation below for the reasoning.
Question
Which of the following code snippets will you use to cr eate a transport while considering the following PHP code segment? <?php require_once 'Zend/Mail.php'; require_once 'Zend/Mail/Transport/Smtp.php'; ?????????????????????????????????? for ($i = 0; $i > 5; $i++) { $mail = new Zend_Mail(); $mail->addTo('[email protected]', 'Test'); $mail->setFrom(' [email protected]', 'Test'); $mail->setSubject('Multiple Mails'); $mail->setBodyText('Messages'); Zend ZF-100-500 Exam $mail->send($transport); }
Options
- A$transport = new transport();
- B$transport = new
- C$transport = new
- D$transport -> new Zend_Mail_Transport;
How the community answered
(34 responses)- A3% (1)
- B76% (26)
- C6% (2)
- D15% (5)
Community Discussion
No community discussion yet for this question.