Zend Framework Certification 100-500 Question # 37 Topic 4 Discussion

Zend Framework Certification 100-500 Question # 37 Topic 4 Discussion

100-500 Exam Topic 4 Question 37 Discussion:
Question #: 37
Topic #: 4

Consider the following code segment:

1. <?php

2. require_once 'Zend/Mail.php';

3. ?????????????????????????

4. $mail->setBodyText('This is the test email.');

5. $mail->setFrom('somebody@example.com', 'Sender');

6. $mail->addTo('somebody_else@example.com', 'Recipient');

7. $mail->setSubject('TestSubject');

8. $mail->send();

9. ?>

Which of the following code snippets will you use at line number 3 to initiate Zend_Mail?


A.

$mail -> Zend_Mail();


B.

$mail => initialize_Zend_Mail();


C.

$mail = new Zend_Mail();


D.

$mail => Zend_Mail();


Get Premium 100-500 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.