PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which of the following code snippets will you insert at line number 14 to get the following output?

You have been given the following PHP script:
1. <?php
2. $xmlstring = <<<XML
3. <?xml version=”1.0″ encoding=”ISO-8859-1″?>
4. <email>

5. <to>jenny@PassGuide.com</to>
6. <from>john@PassGuide.com</from>
7. <heading>Technical issue in Linux OS</heading>
8. <body>There is a technical issue in my Linux system. Please Fix it. </body>
9. </email>
10. XML;
11. $xml = new SimpleXMLElement($xmlstring);
12. foreach($xml->children() as $child)
13. {
14. <Insert code here.>
15. }
16. ?>
Which of the following code snippets will you insert at line number 14 to get the following output?

Which of the following code snippets will you use to create a transport while considering the following PHP co

Which of the following code snippets will you use to create 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(‘someone@example.com’, ‘Test’);
$mail->setFrom(‘ someone@example.com’, ‘Test’);
$mail->setSubject(‘Multiple Mails’);
$mail->setBodyText(‘Messages’);
$mail->send($transport);
}


Page 31 of 101« First...1020...2930313233...405060...Last »