Zend Framework Certification 100-500 Question # 28 Topic 3 Discussion

Zend Framework Certification 100-500 Question # 28 Topic 3 Discussion

100-500 Exam Topic 3 Question 28 Discussion:
Question #: 28
Topic #: 3

What will be the output of the following PHP script?

<?php

include("xml.inc");

if (!$dom = domxml_open_mem($xmlstr)) {

echo "Error while parsing the XML document\n";

exit;

}

$a = $dom->document_element();

print_r($a);

?>


A.

It will display the root element of the XML file.


B.

It will display the XML code of the XML file.


C.

It will throw an error.


D.

It will display the contents of the XML file.


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.